summaryrefslogtreecommitdiff
path: root/src/velocity.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-03-24 00:11:28 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-29 22:18:48 +0200
commit866b09992668f97af063dcd77dc5dd0e3a512b94 (patch)
treedfeffaa3eb1a559d746d04f3fbb7402e74d1b290 /src/velocity.h
parentefe93864d53f72be4fa4dfe003f0f7578fc558e2 (diff)
New Random class for convenient random number generation.
Diffstat (limited to 'src/velocity.h')
-rw-r--r--src/velocity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/velocity.h b/src/velocity.h
index 439ca68..c62ddad 100644
--- a/src/velocity.h
+++ b/src/velocity.h
@@ -30,6 +30,7 @@
#include <map>
#include "sample.h"
+#include "random.h"
class Velocity {
public:
@@ -44,6 +45,8 @@ public:
private:
typedef std::map< Sample *, float > Samples;
Samples samples;
+
+ Random rand;
};
#endif/*__DRUMGIZMO_VELOCITY_H__*/