games.atplay.calculation.randomNumber
Data needed for the players to coordinate generating a trusted random number together, eg. dice rolls, who plays first, shuffling cards
Details · object
| Kind | object |
|---|---|
| Authority | calculation.atplay.games |
| Indexed |
Object
objectProperties
An ID used by the game logic to find transient data when needed
maxLength: 32
The inputs needed to complete the calculation at its various stages, one per player
itemsobject
A hashed or cleartext value used in a calculation. A hash, value, or both must be present, and all hashes must be revealed by a value (for verification) at some point during the game
result
integerHolds the result of the calculation, so that it can be validated easily. Should always be present once the calculation is completable
The number which this random number will be under (eg. coin toss = 2, dice roll = 6)