RandomExtension extension

on

Methods

nextBoolean({double odds = 0.5}) bool

Available on Random, provided by the RandomExtension extension

Returns a random boolean based on the given odds.
nextColor() Color

Available on Random, provided by the RandomExtension extension

Returns a random color with 1.0 opacity and RGB values between 0 and 255.
nextDoubleBetween(double min, double max) double

Available on Random, provided by the RandomExtension extension

Returns a random double between min (inclusive) and max (exclusive), using a linear probability distribution.
nextIntBetween(int min, int max) int

Available on Random, provided by the RandomExtension extension

Returns a random integer between min (inclusive) and max (exclusive), using a linear probability distribution.