TORCS  1.3.9
The Open Racing Car Simulator
Distribution.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <learning/Distribution.h>
Include dependency graph for Distribution.cpp:

Go to the source code of this file.

Functions

void setRandomSeed (unsigned int seed)
 
real urandom ()
 
real urandom (real min, real max)
 

Variables

static const double PI = 3.14159265358979323846
 

Function Documentation

◆ setRandomSeed()

void setRandomSeed ( unsigned int  seed)

Definition at line 19 of file Distribution.cpp.

◆ urandom() [1/2]

real urandom ( )

Definition at line 23 of file Distribution.cpp.

◆ urandom() [2/2]

real urandom ( real  min,
real  max 
)

Definition at line 32 of file Distribution.cpp.

Here is the call graph for this function:

Variable Documentation

◆ PI

const double PI = 3.14159265358979323846
static

Definition at line 17 of file Distribution.cpp.