9 public static class Rand
11 public static Random Random {
get; } =
new Random();
28 return Random.Next(1,
int.MaxValue);
38 return new RandomSeed(seed <= 0 ? Random.Next(1,
int.MaxValue) : seed);
Contains the random number generator used for ID and random seed assignments.
static int GetRandomId()
Returns a random positive integer ID.
static RandomSeed CreateRandomSeed(int seed)
Returns a new RandomSeed object for the given seed. If the specified seed is less than or equal to ze...
static int AutoAssignId(int id)
If the specified ID is less than or equal to zero, returns a new random positive integer ID....