Sync changes from upstream repository

Co-authored-by: Andrew Le Bihan <andy@mcneel.com>
Co-authored-by: Dale Fugier <dale@mcneel.com>
Co-authored-by: Dale Lear <dalelear@mcneel.com>
Co-authored-by: Greg Arden <greg@mcneel.com>
Co-authored-by: Jussi <jussi@mcneel.com>
Co-authored-by: Lowell <lowell@mcneel.com>
Co-authored-by: Rajaa Issa <rajaa@mcneel.com>
Co-authored-by: Steve Baer <steve@mcneel.com>
Co-authored-by: alain <alain@mcneel.com>
Co-authored-by: chuck <chuck@mcneel.com>
Co-authored-by: piac <giulio@mcneel.com>
This commit is contained in:
Bozo The Builder
2021-05-13 04:27:38 -07:00
parent c20e599d1f
commit 53fe7bc7ef
81 changed files with 13793 additions and 2603 deletions

View File

@@ -152,6 +152,28 @@ public:
double RandomDouble(const class ON_Interval& range);
/*
Parameters:
i0 - [in]
i1 - [in]
Returns:
A signed integer in the interval [min(i0,i1), max(i0,i1)], inclusive
Example
RandomSignedInteger(-2,3) will return -2, -1, 0, 1, 2, or 3.
*/
int RandomSignedInteger(int i0, int i1);
/*
Parameters:
i0 - [in]
i1 - [in]
Returns:
An unsigned integer in the interval [min(i0,i1), max(i0,i1)], inclusive
Example
RandomUnsignedInteger(3,7) will return 3, 4, 5, 6, or 7.
*/
unsigned int RandomUnsignedInteger(unsigned int i0, unsigned int i1);
/*
Description:
Perform a random permuation on an array.