but $rand(1,1) will have the same 50/50 results
you say
I tested this random binary generator 100000 times, and the results are: %j.countgreaterequaltofive 49632 %j.countlessthan5 50367
try that with $rand(1,2)
same results i bet