js8call/lib/ldpc/peg/Random.h
2018-02-08 21:28:33 -05:00

30 lines
493 B
C++

#ifndef RANDOM
#define RANDOM 1
#include <cstdlib>
// #include <iostream>
class Random{
private:
unsigned long int seed; //previously LONG INT
unsigned long int seed_u;
public:
Random(void) {
this->seed=987654321u;
this->seed_u=123456789lu;
}
~Random(void){;}
void bubbleSort(int a[], int size);
double gauss(double sdev, double mean);
double uniform(double a, double b);
int uniform(int a, int b); // [a, b)
int nonUniform(int a, int b);
};
#endif