reset static method
Using Random.reset, you can reset a particular sequence. You can specify a seed value and whether to include the sequence name and world in the generation of numbers.
Random.reset | |
---|---|
String | sequence id |
seed | integer seed value(optional) |
includeWorldSeed | set to false if sequence should be independent of your world (optional, seed is required) |
includeSequenceId | set to false to make sequence independent of the id (optional, seed is required) |
Implementation
static reset(
String sequence, {
int? seed,
bool? includeWorldSeed,
bool? includeSequenceId,
}) =>
_RandomReset(
sequence,
seed: seed,
includeWorldSeed: includeWorldSeed,
includeSequenceId: includeSequenceId,
);