Re: percentage based output



On Nov 30, 9:44 am, Matt <matt.foxt...@xxxxxxxxx> wrote:
This just sounds like a probability problem.

The usual solution to this problem is to generate a random number
between 0 and 1, and if the number is under (in your case) .6 then
print whatever should print 60% of the time. If it's over .6, print
whatever should print 40% of the time. I don't think there's some
slick method to do all of that for you.

Thank you for the super quick reply. I thought there might have been a
better way to do this that I didn't think of. Thanks for confirming my
thoughts.

.