hydrogen
1.2.6
Random.h
Go to the documentation of this file.
1
/*
2
* Hydrogen
3
* Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
4
*
5
* http://www.hydrogen-music.org
6
*
7
* This program 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 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program 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 program. If not, see https://www.gnu.org/licenses
19
*
20
*/
21
22
#ifndef H2C_RANDOM_H
23
#define H2C_RANDOM_H
24
25
#include <
core/Object.h
>
26
27
namespace
H2Core
28
{
29
35
class
Random
:
public
H2Core::Object
<Random>
36
{
37
H2_OBJECT
(
Random
)
38
public
:
45
static
float
getGaussian
(
float
fStandardDeviation );
46
};
47
48
};
49
50
#endif
// H2C_RANDOM_H
Object.h
H2_OBJECT
#define H2_OBJECT(name)
Definition
Object.h:227
H2Core::Object
Definition
Object.h:181
H2Core::Random
Container for functions generating random number.
Definition
Random.h:36
H2Core::Random::getGaussian
static float getGaussian(float fStandardDeviation)
Draws an uncorrelated random value from a Gaussian distribution of mean 0 and fStandardDeviation.
Definition
Random.cpp:26
H2Core
Definition
ExportMidiDialog.h:31
src
core
Helpers
Random.h
Generated by
1.13.2