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
#include "kdelibs_export.h"
00022
00023
class KRandomSequencePrivate;
00024
class QGList;
00039 class KDECORE_EXPORT KRandomSequence
00040 {
00041
public:
00055 KRandomSequence(
long lngSeed = 0 );
00056
00060
virtual ~KRandomSequence();
00061
00065 KRandomSequence(
const KRandomSequence &a);
00066
00070 KRandomSequence &operator=(
const KRandomSequence &a);
00071
00078
void setSeed(
long lngSeed = 1 );
00079
00085
double getDouble();
00086
00093
unsigned long getLong(
unsigned long max);
00094
00100
bool getBool();
00101
00107
void randomize(QGList *list);
00108
00130
void modulate(
int i);
00131
00132
private:
00133
void Draw();
00134
long m_lngSeed1;
00135
long m_lngSeed2;
00136
long m_lngShufflePos;
00137
00138
static const int m_nShuffleTableSize;
00139
long *m_ShuffleArray;
00140
00141 KRandomSequencePrivate *d;
00142 };
00143
00144
#endif
00145
This file is part of the documentation for kdecore Library Version 3.4.0.