Graine
Génération procédurale de créatures et apprentissage par réseaux de neurones.
Functions
Usefull.cpp File Reference
#include "Usefull.hpp"
Include dependency graph for Usefull.cpp:

Functions

double RandFloat ()
 Give a random float number. More...
 
double RandFloat (double min, double max)
 Give a random float number between to values (min and max) More...
 
double RandFloat (double max)
 Give a random float given a max value (max) More...
 
double RandomClamped ()
 Give a random minus a random value. More...
 
double RandomClamped (double min, double max)
 Give a random minus a random value between to values. More...
 
double RandomClamped (double max)
 Give a random minus a random value given a max values. More...
 
int sumFrom0ToN (int n)
 Mathematical sum from 0 to n of given n. More...
 

Detailed Description

Purpose : Some usefull functions returning random floats.

Author
Eresia & Monsieur
Version
1.0
Date
29/02/2016

Function Documentation

double RandFloat ( )

Give a random float number.

Here is the caller graph for this function:

double RandFloat ( double  min,
double  max 
)

Give a random float number between to values (min and max)

Here is the call graph for this function:

double RandFloat ( double  max)

Give a random float given a max value (max)

Here is the call graph for this function:

double RandomClamped ( )

Give a random minus a random value.

Here is the call graph for this function:

Here is the caller graph for this function:

double RandomClamped ( double  min,
double  max 
)

Give a random minus a random value between to values.

Here is the call graph for this function:

double RandomClamped ( double  max)

Give a random minus a random value given a max values.

Here is the call graph for this function:

int sumFrom0ToN ( int  n)

Mathematical sum from 0 to n of given n.