Path: chuka.playstation.co.uk!news From: "Marc Lambert" Newsgroups: scee.yaroze.freetalk.english Subject: Re: rand () Date: Sat, 13 Mar 2004 09:32:53 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 22 Message-ID: References: NNTP-Posting-Host: user-7875.l3.c3.dsl.pol.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Oh...the...numbers in the rand go up and down, up and down, up and down ;-) Marc. "Nigel Critten" wrote in message news:c2t4oa$5lq9@www.netyaroze-europe.com... > Great meeting last night, like Marc I had the wheels on the bus in my > head and just as I got over it I read his post and they are back going > round and round. > > Does anyone have a rand function that will generate a random number > between two given numbers so rand (-10, 10) would generate a number > somewhere between -10 and 10, the built in rand () returns a number > between 0 - 32767 which doesn't help much. > > Thanks > Nigel