Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Random Values (1-5) for a PDL?

by plobsing (Friar)
on Mar 06, 2009 at 02:22 UTC ( [id://748723]=note: print w/replies, xml ) Need Help??


in reply to Re: Random Values (1-5) for a PDL?
in thread Random Values (1-5) for a PDL?

Whats wrong with the following?

my $pdl = random(100, 100) * 4 + 1;

Replies are listed 'Best First'.
Re^3: Random Values (1-5) for a PDL?
by whakka (Hermit) on Mar 06, 2009 at 02:43 UTC
    It's the same:
    The following binary perl operators act on piddles: + * - / ** > < <= >= == != << >> | & ^ ! % <=> these behave identically to their ordinary Perl equivalents, except th +ey act element-by-element on the whole piddle.
    ...but you probably already knew that. :)
      Thanks for all the input. This makes sense.

      I think I'm starting to get used to working with PDL, but there are still so many oddities that I'm unaware of. It has definitely been a learning process.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-26 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found