YARP
Yet Another Robot Platform
Random.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_OS_RANDOM_H
11 #define YARP_OS_RANDOM_H
12 
13 #include <yarp/os/api.h>
14 
21 namespace yarp {
22 namespace os {
23 
30 {
31 public:
36  static double uniform();
37 
44  static double normal(double m, double s);
45 
50  static void seed(int seed);
51 
56  static double normal();
57 
64  static int uniform(int min, int max);
65 };
66 
67 } // namespace os
68 } // namespace yarp
69 
70 #endif // YARP_OS_RANDOM_H
api.h
YARP_os_API
#define YARP_os_API
Definition: api.h:19
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::os::Random
A collection of basic random number generation algorithms.
Definition: Random.h:30