From 06429540352eadaec1c9e06a2cfcd7668a82ed3f Mon Sep 17 00:00:00 2001 From: evomarc Date: Sun, 5 Nov 2000 04:50:10 +0000 Subject: [PATCH] Added a default value (0.5) to method flip --- eo/src/utils/eoRNG.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/utils/eoRNG.h b/eo/src/utils/eoRNG.h index 23584746..849de003 100644 --- a/eo/src/utils/eoRNG.h +++ b/eo/src/utils/eoRNG.h @@ -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; }