3 ms·
It seems like this would be a particularly handy syntax for random behavior in game programming. I usually use `if random() < .15` as an idiom for "do 15% of th
by mistercow 14y ago
It seems like this would be a particularly handy syntax for random behavior in game programming. I usually use `if random() < .15` as an idiom for "do 15% of the time", but this is way more readable.