Host typegenerated
Random
Random numbers. The same seed always gives the same numbers, so a run can be replayed.
5 members · engine 0.1.0
Random.int(min: number, max: number) -> numberA random whole number frommintomax, both included:Random.int(1.0, 6.0)rolls a die.Random.pick(group: List<Entity>) -> EntityA random object from a list, such as a random enemy to target. The list must not be empty.Random.range(min: number, max: number) -> numberA random number fromminup to, but not including,max.Random.seed(value: number) -> unitStarts the random numbers from a seed. The same seed always gives the same numbers afterwards.Random.value() -> numberA random number from 0 up to, but not including, 1.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b