I'm working with probability and Ruby doesn't really does as I want.
Just to make it easier to understand I'll focus on the problem.
I have some event that should occur in 20% of all events. I thought I'd
make it easy by just using rand like following:
num = 20 - rand(100)
if(num > 0)
But "do_stuff" is by far not being called as often as I would like it
to. Is there any method or something that is more accurate with that
kind of stuff?
Thanks in advance!