Re: percentage based output
- From: vern <vwenberg@xxxxxxxxx>
- Date: Sun, 30 Nov 2008 07:52:03 -0800 (PST)
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.
.
- References:
- percentage based output
- From: vern
- Re: percentage based output
- From: Matt
- percentage based output
- Prev by Date: Re: percentage based output
- Next by Date: Re: php form and ssi
- Previous by thread: Re: percentage based output
- Index(es):