From: Dennis S. <sy...@yo...> - 2004-10-01 19:38:20
|
On Fri, 2004-10-01 at 12:25 +0200, Burkhard Plaum wrote: > Dennis Smit wrote: > > > (which also includes a > > good pseudo random number gen, and while we add it, some nice range, > > float random features. > > An EXTREMELY useful function would be something like > > int lv_random_decide(float p); > > which returns 1 with a propability of p (0.0 <= p <= 1.0) I'm not sure if I understand this correctly, but basicly checks if p > 0.5 or lower than ? or ?! Dennis. |