$jsapi.random
This method returns a random integer number in the specified range.
caution
This method is used internally by
$reactions.random
.
We do not recommend calling it directly.How to use
state: HeadsOrTails
q!: * {heads * tails} *
a: {{!!$jsapi.random(2) ? "Heads" : "Tails"}}!