mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-24 23:37:33 +08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user