BartlebyScrivener
Member level 5
I would like to make weighted random numbers.
I am using $urandom_range(1) to create random 1's and 0's. But I would like to be able to, say, produce 1's 10% of the time, or perhaps, 80% of the time etc.
Many thanks for any ideas!
I am using $urandom_range(1) to create random 1's and 0's. But I would like to be able to, say, produce 1's 10% of the time, or perhaps, 80% of the time etc.
Many thanks for any ideas!