Re: randomising

From: Karl B Buchner (zerker@juno.com)
Date: 01/14/02


>i just wanna find out how to
> make
> it random =P..
I'm not sure exactly what you're talking about with the
rest of your message, but if you want to know how to
make a generic something random-- here goes:
if you want a one in ten chance of something happening,

if(!number(0, 9))
    /*succeed*/
else
    /*fail*/

if you wanted 1 in 20,

if(!number(0, 19))

I hope this answers your question...

Blaize
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT