Rand(18)-9

Gerald Ebberink
Laser Technician

NCLR B.V.
PO box 2662
Enschede 7500CR
The Netherlands
	Work: 31 53 4891110
Direct: 31 53 4893961
Fax: 31 53 4891102
Email: g.h.p.ebberink / nclr.nl

http://www.linkedin.com/in/geraldebberink

 

	
 	 Want a signature like this?	

-----Original Message-----
From: Josselin [mailto:josselin / wanadoo.fr] 
Sent: dinsdag 30 januari 2007 8:10
To: ruby-talk ML
Subject: generating negative random numbers

I know how to generate positive random numbers, but is it possible to 
generate a random number in a range such  [-9..+9]   ?
tfyh

joss