1 2 3 4 5 6 7 8 9 10 11
namespace PluggIt { class Random { public static float nextFloat( float min, float max ) { return min + rand() * (max - min) / (float) RAND_MAX; } }; }