3public static class Rand
42 public static int Range(
int min,
int max)
44 return _random.Next(max - min) + min;
47 public static float Range(
float min,
float max)
49 return (
float)(
_random.NextDouble() * (double)(max - min) + (double)min);
52 public static int rnd(
int max)
61 public static float rndf(
float max)
63 return Range(0f, max);
static float Range(float min, float max)
static int rndNormal2(int max)
static float rndf(float max)
static int rndSeed(int a, int seed)
static int Range(int min, int max)
static void InitBytes(int a)
static void UseSeed(int seed, Action action)
static int rndNormal(int max)
static int rndSqrt(int max)
static void SetSeed(int a=-1)