Useful 3rd party functions. More...
#include <stdio.h>#include <termios.h>#include <unistd.h>#include <fcntl.h>#include <ctype.h>#include <stdlib.h>#include <random>Go to the source code of this file.
Functions | |
| int | kbhit () |
| Checks for key press. More... | |
| int | getRandomInt (int min, int max) |
| Get a random integer in a given interval. More... | |
| double | getRandomDouble (double min, double max) |
| Get a random double in a given interval. More... | |
Useful 3rd party functions.
| double getRandomDouble | ( | double | min, |
| double | max | ||
| ) |
Get a random double in a given interval.
Value is sampled from uniform distribution
| min | Interval lower bound |
| max | Interval upper bound |
| int getRandomInt | ( | int | min, |
| int | max | ||
| ) |
Get a random integer in a given interval.
Value is sampled from uniform distribution
| min | Interval lower bound |
| max | Interval upper bound |
| int kbhit | ( | ) |