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

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]
[Corion]: marto: Oh, I'm jealous. I'm going to see DM in Frankfurt, but it's a stadium full of people, so, rather a big thing where you mostly get to see the band on screens ;)
[marto]: yes, the last time I saw them was in Berlin a few years ago, at the old Olympic stadium
[marto]: After Sunday I don't think I'll go see them again :)
[LanX]: Corion: come on, people are people! ;)
[Corion]: Naah, I think it's still an OK show so far. Their new songs aren't exactly great, but I'm not going there for new material anyway ;)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2017-03-24 11:36 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.