YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
18namespace yarp::os {
19
26{
27public:
32 static double uniform();
33
40 static double normal(double m, double s);
41
46 static void seed(int seed);
47
52 static double normal();
53
60 static int uniform(int min, int max);
61};
62
63} // namespace yarp::os
64
65#endif // YARP_OS_RANDOM_H
A collection of basic random number generation algorithms.
Definition Random.h:26
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18