Reference library > Stochastic > RandomCoin
RandomCoin
RandomCoin(probability=0.5, clock=None, reset=None)
Flip a coin with the given probability. If a clock is passed, only picks a new value on a clock tick. To generate and hold an unchanging random value, pass clock=0.
Last update:
2025-02-16
Created: 2023-12-03
Created: 2023-12-03