EASEA defined functions
Révision datée du 15 juin 2011 à 16:14 par Kruger (discussion | contributions) (→Random Number Generators)
Random Number Generators
TossCoin
Description
Simulated the toss of a coin. There are two different definitions of the tossCoin function:
- A simple toss of a coin.
- A biased toss of a coin.
EASEA syntax
bool tossCoin() // SImple tosscoin
bool tossCoin(float bias) // Biased tossCoin
Example
if( tossCoin(0.1)){ ... }