public float RandomFloat(float min, float max) { return (float)(random.NextDouble() * (max - min) + min); }