Added a default value (0.5) to method flip
This commit is contained in:
parent
4a8c1b3947
commit
0642954035
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ public :
|
|||
flip() tosses a biased coin such that flip(x/100.0) will
|
||||
returns true x% of the time
|
||||
*/
|
||||
bool flip(float bias)
|
||||
bool flip(float bias=0.5)
|
||||
{
|
||||
return uniform() < bias;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue