RandomSource
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
nextBoolean() as bool
Return Type:
bool
nextDouble() as double
Return Type:
double
nextFloat() as float
Return Type:
float
nextGaussian() as double
Return Type:
double
nextInt() as int
Return Type:
int
nextInt(bound as int) as int
Parameters:
bound: int
Type: int
Return Type:
int
nextInt(bound as int, origin as int) as int
Parameters:
bound: int
Type: int
origin: int
Type: int
Return Type:
int
nextIntBetweenInclusive(origin as int, bound as int) as int
Parameters:
origin: int
Type: int
bound: int
Type: int
Return Type:
int
nextLong() as long
Return Type:
long