diff options
Diffstat (limited to 'src/Random.cxx')
-rw-r--r-- | src/Random.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Random.cxx b/src/Random.cxx new file mode 100644 index 0000000..62c53a3 --- /dev/null +++ b/src/Random.cxx @@ -0,0 +1,11 @@ +namespace PluggIt { + +class Random +{ + public static float nextFloat( float min, float max ) { + return min + rand() * (max - min) / (float) RAND_MAX; + } +}; + +} + |