View Single Post
Old 01-24-2003, 08:05 PM   #2 (permalink)
Spooky
Forum Expert
 
Join Date: Sep 2002
Posts: 1,267
Send a message via ICQ to Spooky
Default

this.Skills[SkillName.MagicResist].Base = Utility.Random(20,40)

the above code produces a random number from 19 - 59
the first number is the minimum the second is the stepping.
remember that numbering starts at 0.

you can convert an Int to a double but only if that data type in runUO supports it.
Spooky is offline   Reply With Quote