On Mon, 1 Dec 1997, Chuck Reed wrote: >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 srandom = seed random random = generate random number from 0 to 1 >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! Use 'number(from, to)', it's in utils.c I believe. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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