RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

RandomDouble() with range (simple mod included)

fwiffo

Sorceror
To let anyone decide the random range on RandomDouble, in the Utility, inside core, it could be included something like this:

Code:
public static double RandomDouble(double min, double max)
{
    return min + (m_Random.NextDouble() * (max - min));
}

Simple and useful
 
Top