Grant wrote:
> Hello,

Hello,

> I need to generate two random numbers.  One should be a 1, 2,
> or 3,

int( rand 3 ) + 1


> and the other should be a 1 or 2.

int( rand 2 ) + 1


perldoc -f int
perldoc -f rand



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to