pip_services3_commons.random.RandomBoolean module
pip_services3_commons.random.RandomBoolean
RandomBoolean implementation
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_commons.random.RandomBoolean.
RandomBoolean
Bases:
object
Random generator for boolean values.
Example:
value1 = RandomBoolean.next_boolean() # Possible result: true value2 = RandomBoolean.chance(1,3) # Possible result: false