> -----Original Message----- > From: eric [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 02, 2001 4:12 AM > To: [EMAIL PROTECTED] > Subject: using rand > > > i'm taking an intro to programming with PERL class. one of > the problems > asks us to do the following: > show how to creat a random number inthe following range: > 5 to 15 > -10 to 20 > > the documentation for rand and srand are not too useful.
Well, they're extremely useful in telling what those routines do, so I don't understand your complaint. Anyway, since rand(x) generates a random number in the range 0 <= n < x, it should be trivial to map that to the range a <= n < b, right? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]