# Documentation de la bibliothèque MLV-2.0.2

- Presentation
- Téléchargement
- Installation
- Compilation
- Exemples
- API
- Liste des fonctions
- bogues
- FAQ
- contacts

MLV_random.h
Aller à la documentation de ce fichier.
1 /*
2 * This file is part of the MLV Library.
3 *
4 * Copyright (C) 2010,2011,2012 Adrien Boussicault, Marc Zipstein
5 *
6 *
7 * This Library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This Library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this Library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
32 #ifndef __MLV__MLV_RANDOM_H__
33 #define __MLV__MLV_RANDOM_H__
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
44 int MLV_get_random_boolean();
45
54 int MLV_get_random_integer(int begin, int end);
55
64 double MLV_get_random_double(double begin, double end);
65
66 #ifdef __cplusplus
67 }
68 #endif
69
70 #endif
MLV_get_random_integer
int MLV_get_random_integer(int begin, int end)
Renvoie un entier aléatoire choisi dans un intervalle donné en paramètre.
MLV_get_random_boolean
int MLV_get_random_boolean()
Renvoie 0 ou 1 aléatoirement.
MLV_get_random_double
double MLV_get_random_double(double begin, double end)
Renvoie un réel aléatoire choisi dans un intervalle donné en paramètre.