oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Generators

Functions

int oevislib_net.Random.Get (Range inRange)
 Returns a random integer value in the provided range.
int oevislib_net.Random.Get (int inRangeStart=0, int inRangeEnd=100)
 Returns a random integer value in the provided range.
float oevislib_net.Random.Get (Interval inInterval)
 Returns a random float value in the provided interval.
float oevislib_net.Random.Get (float inIntervalStart=0.0f, float inIntervalEnd=1.0f)
 Returns a random float value in the provided interval.
Point2D oevislib_net.Random.GetPoint (Interval inIntervalX, Optional< Interval > inIntervalY=null)
 Returns a Point2D object with random coordinates included in the provided intervals.
Point2Di oevislib_net.Random.GetPosition (Range inRangeX, Optional< Range > inRangeY=null)
 Returns a Point2Di object with random coordinates included in the provided intervals.
Array< int > oevislib_net.Random.GetArray (int inSize, int inRangeStart=0, int inRangeEnd=100)
 Returns an array of random integers.
Array< float > oevislib_net.Random.GetArray (int inSize, float inIntervalStart=0.0f, float inIntervalEnd=1.0f)
 Returns an array of random floats.
Array< Point2Doevislib_net.Random.GetPointArray (int inSize, Interval inIntervalX, Optional< Interval > inIntervalY=null)
 Returns an array of Point2D objects with random coordinates included in the provided intervals.
Array< Point2Dioevislib_net.Random.GetPositionArray (int inSize, Range inRangeX, Optional< Range > inRangeY=null)
 Returns an array of Point2Di objects with random coordinates included in the provided intervals.

Detailed Description

Function Documentation

◆ Get() [1/4]

float oevislib_net.Random.Get ( float inIntervalStart = 0::0f,
float inIntervalEnd = 1::0f )
inline

Returns a random float value in the provided interval.

Parameters
inIntervalStartStarting point of the input interval.
inIntervalEndEnding point of the input interval (included). The end point can be lower than the starting point.
Returns
Random float value in the provided interval.

◆ Get() [2/4]

int oevislib_net.Random.Get ( int inRangeStart = 0,
int inRangeEnd = 100 )
inline

Returns a random integer value in the provided range.

Parameters
inRangeStartStarting point of the input range.
inRangeEndEnding point of the input range (included). The end point can be lower than the starting point.
Returns
Random integer value in the provided range.

◆ Get() [3/4]

float oevislib_net.Random.Get ( Interval inInterval)
inline

Returns a random float value in the provided interval.

Parameters
inIntervalInput interval. The end point of the interval is included, and it can be lower than the starting point.
Returns
Random float value in the provided interval.

◆ Get() [4/4]

int oevislib_net.Random.Get ( Range inRange)
inline

Returns a random integer value in the provided range.

If the range is empty, the start value is returned.

Parameters
inRangeInput range. The end point of the range is included, and the range length can be negative.
Returns
Random integer value in the provided range.

◆ GetArray() [1/2]

Array< float > oevislib_net.Random.GetArray ( int inSize,
float inIntervalStart = 0::0f,
float inIntervalEnd = 1::0f )
inline

Returns an array of random floats.

Parameters
inSizeSize of the array. Range: [1, +inf).
inIntervalStartStarting point of the input interval.
inIntervalEndEnding point of the input interval (included). The end point can be lower than the starting point.
Returns
Array of random floats.

◆ GetArray() [2/2]

Array< int > oevislib_net.Random.GetArray ( int inSize,
int inRangeStart = 0,
int inRangeEnd = 100 )
inline

Returns an array of random integers.

Parameters
inSizeSize of the array. Range: [1, +inf).
inRangeStartStarting point of the input range.
inRangeEndEnding point of the input range (included). The end point can be lower than the starting point.
Returns
Array of random integers.

◆ GetPoint()

Point2D oevislib_net.Random.GetPoint ( Interval inIntervalX,
Optional< Interval > inIntervalY = null )
inline

Returns a Point2D object with random coordinates included in the provided intervals.

Parameters
inIntervalXInterval of the X coordinate. The end point of the interval is included, and it can be lower than the starting point.
inIntervalYInterval of the Y coordinate. If Null, inIntervalX is used.
Returns
Point2D object with random coordinates included in the provided intervals.

◆ GetPointArray()

Array< Point2D > oevislib_net.Random.GetPointArray ( int inSize,
Interval inIntervalX,
Optional< Interval > inIntervalY = null )
inline

Returns an array of Point2D objects with random coordinates included in the provided intervals.

Parameters
inSizeSize of the array. Range: [1, +inf).
inIntervalXInterval of the X coordinates. The end point of the interval is included, and it can be lower than the starting point.
inIntervalYInterval of the Y coordinates. If Null, inIntervalX is used.
Returns
Array of Point2D objects with random coordinates included in the provided intervals.

◆ GetPosition()

Point2Di oevislib_net.Random.GetPosition ( Range inRangeX,
Optional< Range > inRangeY = null )
inline

Returns a Point2Di object with random coordinates included in the provided intervals.

Parameters
inRangeXRange of the X coordinate. The end point of the range is included, and it can be lower than the starting point.
inRangeYRange of the Y coordinate. If Null, inRangeX is used.
Returns
Point2Di object with random coordinates included in the provided intervals.

◆ GetPositionArray()

Array< Point2Di > oevislib_net.Random.GetPositionArray ( int inSize,
Range inRangeX,
Optional< Range > inRangeY = null )
inline

Returns an array of Point2Di objects with random coordinates included in the provided intervals.

Parameters
inSizeSize of the array. Range: [1, +inf).
inRangeXRange of the X coordinate. The end point of the range is included, and it can be lower than the starting point.
inRangeYRange of the Y coordinate. If Null, inRangeX is used.
Returns
Array of Point2Di objects with random coordinates included in the provided intervals.