18#ifndef K_RANDOM_SEQUENCE_H
19#define K_RANDOM_SEQUENCE_H
21#include "tdelibs_export.h"
23class KRandomSequencePrivate;
78 void setSeed(
long lngSeed = 0 );
93 unsigned long getLong(
unsigned long max);
136 long m_lngShufflePos;
138 static const int m_nShuffleTableSize;
139 long *m_ShuffleArray;
141 KRandomSequencePrivate *d;
KRandomSequence & operator=(const KRandomSequence &a)
Assignment.
KRandomSequence(long lngSeed=0)
Creates a pseudo-random sequence based on the seed lngSeed.
unsigned long getLong(unsigned long max)
Get the next number from the pseudo-random sequence.
double getDouble()
Get the next number from the pseudo-random sequence.
void modulate(int i)
Modulate the random sequence.
void randomize(TQGList *list)
Put a list in random order.
void setSeed(long lngSeed=0)
Restart the sequence based on lngSeed.
bool getBool()
Get a boolean from the pseudo-random sequence.