Merging MK branch revs. 332:338; constraint handling; GP nodes; minor stuff;
This commit is contained in:
@@ -248,8 +248,12 @@ public class RNG extends Random {
|
||||
//counter++;
|
||||
return randomInt();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Returns true with probability p.
|
||||
*
|
||||
* @param p
|
||||
* @return true with probability p, else false
|
||||
*/
|
||||
public static boolean flipCoin(double p) {
|
||||
//counter++;
|
||||
|
Reference in New Issue
Block a user