Galactic Bloodshed
Functions
rand.cc File Reference
#include "gb/utils/rand.h"
#include <cstdlib>
Include dependency graph for rand.cc:

Go to the source code of this file.

Functions

double double_rand ()
 
long long_rand (long low, long hi)
 
int int_rand (int low, int hi)
 
int round_rand (double x)
 
bool success (int x)
 

Function Documentation

◆ double_rand()

double double_rand ( )

Definition at line 12 of file rand.cc.

Referenced by round_rand().

Here is the caller graph for this function:

◆ int_rand()

int int_rand ( int  low,
int  hi 
)

Definition at line 22 of file rand.cc.

Referenced by success().

Here is the caller graph for this function:

◆ long_rand()

long long_rand ( long  low,
long  hi 
)

Definition at line 16 of file rand.cc.

◆ round_rand()

int round_rand ( double  x)

Definition at line 29 of file rand.cc.

References double_rand().

Here is the call graph for this function:

◆ success()

bool success ( int  x)

Definition at line 33 of file rand.cc.

References int_rand().

Here is the call graph for this function: