Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Send x% of the users to A, the rest to B

by BrowserUk (Pope)
on Oct 26, 2012 at 10:58 UTC ( #1001046=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E"{++$t;$r=`perl -E\"say rand()\"`;$r<.5?++$a:++$b; printf qq[\r
    +%.3f : %.3f], $a*100/$t, $b*100/$t; redo}"
    49.350 : 50.650
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001046]
help
Chatterbox?
and a kettle whistles...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2017-04-25 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.