Class Random

Class Documentation

class Random

A class that manages random numbers

Public Functions

Random()

Constructor

void set_seed(uint64_t seed)

Set seed

Parameters
  • seed: Seed value

double uniform()

Generate random numbers from uniform distribution of \([0,1)\)

Return

Generated random numbers

double normal()

Generate random numbers from normal distribution with expecation value 0 and variance 1

Return

Generated random numbers

unsigned long long int64()

Generate random numbers as 64-bit integer

Return

Generated random numbers

unsigned long int32()

Generate random numbers as 32-bit integer

Return

Generated random numbers