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

Re^3: Random generator fail

by Anonymous Monk
on Dec 06, 2012 at 14:07 UTC ( #1007579=note: print w/replies, xml ) Need Help??

in reply to Re^2: Random generator fail
in thread Random generator fail

forgot to add this:

perl -wle "use 5.10.0; say int foreach (1..100) ;"

Works as rand() should have.

Replies are listed 'Best First'.
Re^4: Random generator fail
by MidLifeXis (Monsignor) on Dec 06, 2012 at 17:23 UTC

    Works as rand() should have.
    Either your assumptions are wrong, or the documentation for rand does not match the implementation. Which do you think it is?


Re^4: Random generator fail
by Anonymous Monk on Dec 06, 2012 at 14:22 UTC

    This one is better

    perl -wle "use 5.10.0; say abs foreach (-5..5) ;" 5 4 3 2 1 0 1 2 3 4 5

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007579]
[thezip]: G'day all!
[perldigious]: Well, that and dodging the people who forget how ice works right away. :-)
[stevieb]: hey, thezip
[perldigious]: I don't miss having to drive up and down in elevation on roads that are iced over, I white knuckled gripping the steering wheel every time I had to where I used to live.
[perldigious]: So I don't envy you mountain guys if you have to drive in the winter, even with tire chains.
MidLifeXis waves.
[stevieb]: man, I absolutely LOVE driving in the worst winter conditions. In the mountainous roads, there are extremely few (if any) other drivers. I love the challenge. I've been doing extreme off-road my whole life, and as I said, I'm always well...
[stevieb]: ...prepared for even the very worst
Discipulus seems a part of the globe very unfrindly with Kawasaki riders..

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2016-12-06 16:46 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (112 votes). Check out past polls.