Random constructor
generate a random value from a given Range.
constructor | |
---|---|
Range | the range to take values from |
roll | if true announces the value in the chat(random roll) |
sequence | sequence to pull deterministic values from(optional) |
Random(Range(from: 1, to: 5), roll: false, sequence: 'my_sequence')
⇒ random value 1..5 my_sequence
Implementation
Random(this.range, {this.roll = false, this.sequence});