diff options
author | Denis Oliver Kropp <dok@directfb.org> | 2010-10-19 15:56:15 +0200 |
---|---|---|
committer | Denis Oliver Kropp <dok@directfb.org> | 2010-10-19 15:56:15 +0200 |
commit | 27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e (patch) | |
tree | efee63b09d2f9b73e2ae73a9448660a3cf73c4e6 /src/Random.cxx | |
download | pluggit-27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e.tar.gz pluggit-27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e.tar.bz2 pluggit-27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e.zip |
pluggit
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; + } +}; + +} + |