[chuck-users] Coin in Chuck
ronni montoya
ronni.montoya at gmail.com
Sat Aug 18 21:55:54 EDT 2012
Hi , in supercollider there is a number method called coin.
It just gives you back true or false based on probabilities.
For example:
0.2.coin; -------------> this means 20 % chance for true.
So if i do :
if(0.2.coin,{
doSomething();
});
The function is gonna have 20% change to be called each time i run that code.
Is there is something like this in chuck?
cheers.
R.
More information about the chuck-users
mailing list