YARP
Yet Another Robot Platform
Random.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_OS_RANDOM_H
8 #define YARP_OS_RANDOM_H
9 
10 #include <yarp/os/api.h>
11 
18 namespace yarp {
19 namespace os {
20 
27 {
28 public:
33  static double uniform();
34 
41  static double normal(double m, double s);
42 
47  static void seed(int seed);
48 
53  static double normal();
54 
61  static int uniform(int min, int max);
62 };
63 
64 } // namespace os
65 } // namespace yarp
66 
67 #endif // YARP_OS_RANDOM_H
A collection of basic random number generation algorithms.
Definition: Random.h:27
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18