Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Curved Random Distribution

by BrowserUk (Patriarch)
on Oct 18, 2005 at 20:01 UTC ( [id://501103]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub bRand {
        my( $target, $variance ) = @_;
        my $v = sum map rand() * $variance, 1 .. 4;
        return $target - $variance + ( $v / 2 );
    }
    
  2. or download this
    P:\test>501053 -PRECISION=10 -N=50 -V=5 -ITERS=100000
    50 +-5
    ...
      54.50 : 2   :
      54.60 : 2   :
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://501103]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found