Re: [CODE] [NEWBIE] Random functions

From: ;P (siv@CYBERENET.NET)
Date: 12/02/97


> Ok, some more newbie things that I am a bit hazy on.  In random.c there are
> two random functions (random() and srandom() ).  I can't tell what the hell
> srandom is all about and random looks kinda wierd to me also.  I was just
> wondering if someone could give me a brief description of what these
> functions do because I am making some spells that I need random percentage
> checks for.  Danke!

um...you could just do:

percent = number(1, 100);

number is a circle function that will return a random number between the
two input numbers..

siv


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST