libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
rng.h
Go to the documentation of this file.
1
#pragma once
2
#include "
daisy_core.h
"
3
4
namespace
daisy
5
{
12
class
Random
13
{
14
public
:
15
Random
() {}
16
~Random
() {}
17
25
static
void
Init
();
26
28
static
void
DeInit
();
29
42
static
uint32_t
GetValue
();
43
50
static
float
GetFloat
(
float
min = 0.f,
float
max = 1.f);
51
56
static
bool
IsReady
();
57
};
58
59
}
// namespace daisy
daisy::Random
True Random Number Generator access.
Definition
rng.h:13
daisy::Random::GetFloat
static float GetFloat(float min=0.f, float max=1.f)
daisy::Random::Init
static void Init()
daisy::Random::DeInit
static void DeInit()
daisy::Random::IsReady
static bool IsReady()
daisy::Random::Random
Random()
Definition
rng.h:15
daisy::Random::GetValue
static uint32_t GetValue()
daisy::Random::~Random
~Random()
Definition
rng.h:16
daisy_core.h
daisy
Hardware defines and helpers for daisy field platform.
Definition
index.h:2
src
per
rng.h