From 27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e Mon Sep 17 00:00:00 2001 From: Denis Oliver Kropp Date: Tue, 19 Oct 2010 15:56:15 +0200 Subject: pluggit --- src/Random.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/Random.cxx (limited to 'src/Random.cxx') 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; + } +}; + +} + -- cgit