krandomsequence.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
#ifndef K_RANDOM_SEQUENCE_H
00019
#define K_RANDOM_SEQUENCE_H
00020
00021
class KRandomSequencePrivate;
00022
class QGList;
00037 class KRandomSequence
00038 {
00039
public:
00053
KRandomSequence(
long lngSeed = 0 );
00054
00058
virtual ~KRandomSequence();
00059
00063
KRandomSequence(
const KRandomSequence &a);
00064
00068
KRandomSequence &
operator=(
const KRandomSequence &a);
00069
00076
void setSeed(
long lngSeed = 1 );
00077
00083
double getDouble();
00084
00091
unsigned long getLong(
unsigned long max);
00092
00098
bool getBool();
00099
00105
void randomize(QGList *list);
00106
00128
void modulate(
int i);
00129
00130
private:
00131
void Draw();
00132
long m_lngSeed1;
00133
long m_lngSeed2;
00134
long m_lngShufflePos;
00135
00136
static const int m_nShuffleTableSize;
00137
long *m_ShuffleArray;
00138
00139 KRandomSequencePrivate *d;
00140 };
00141
00142
#endif
00143
This file is part of the documentation for kdecore Library Version 3.3.0.