randomNumberGenerator property
dynamic
get
randomNumberGenerator
Gets or sets a random number generator. The default value is Math, which results in calling Math.random(). Change this to null in order to use an instance of an internal repeatable pseudo-random number generator, which will become the new value of this property.
The new value must be either null or an Object with a method named "random" taking zero arguments and returning a random number between zero (inclusive) and one (exclusive).
Implementation
_i2.dynamic get randomNumberGenerator => _i4.getProperty(
this,
'randomNumberGenerator',
);
set
randomNumberGenerator
(dynamic value)
Implementation
set randomNumberGenerator(_i2.dynamic value) {
_i4.setProperty(
this,
'randomNumberGenerator',
value ?? _i5.undefined,
);
}