mirror of
https://github.com/thestk/stk
synced 2026-02-06 17:26:15 +00:00
Version 4.1.2
This commit is contained in:
committed by
Stephen Sinclair
parent
6e0d1955a8
commit
586b0add5f
@@ -19,12 +19,26 @@ class Noise : public Stk
|
||||
{
|
||||
public:
|
||||
|
||||
//! Default constructor.
|
||||
//! Default constructor which seeds the random number generator with the system time.
|
||||
Noise();
|
||||
|
||||
//! Constructor which seeds the random number generator with a given seed.
|
||||
/*!
|
||||
If the seed value is zero, the random number generator is
|
||||
seeded with the system time.
|
||||
*/
|
||||
Noise( unsigned int seed );
|
||||
|
||||
//! Class destructor.
|
||||
virtual ~Noise();
|
||||
|
||||
//! Seed the random number generator with a specific seed value.
|
||||
/*!
|
||||
If no seed is provided or the seed value is zero, the random
|
||||
number generator is seeded with the current system time.
|
||||
*/
|
||||
void setSeed( unsigned int seed = 0 );
|
||||
|
||||
//! Return a random number between -1.0 and 1.0 using rand().
|
||||
virtual MY_FLOAT tick();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user