menu
niralanlayout package
documentation
utils/rnd.dart
Rnd
getBit static method
getBit static method
dark_mode
light_mode
getBit
static method
int
getBit
(
[
double
chance
=
0.5
])
Implementation
static int getBit([double chance = 0.5]) { return random.nextDouble() < chance ? 1 : 0; }
niralanlayout package
documentation
utils/rnd
Rnd
getBit static method
Rnd class