random.h

来自「已知LDPC码的稀疏交验矩阵H」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef RANDOM#define RANDOM#include <stdlib.h>#include <iostream.h>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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?