Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
random.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
11
//------------------------------------------------------------------------------
12
#include "
core/types.h
"
13
14
namespace
Util
15
{
16
18
uint
FastRandom
();
19
22
float
RandomFloat
();
23
26
float
RandomFloatNTP
();
27
28
}
// namespace Util
Util
A quad tree designed to return regions of free 2D space.
Definition
String.cs:6
Util::RandomFloatNTP
float RandomFloatNTP()
Produces an xorshift128 psuedo based floating point random number in range -1..1 Note that this is no...
Definition
random.cc:54
Util::FastRandom
uint FastRandom()
XorShift128 implementation.
Definition
random.cc:22
Util::RandomFloat
float RandomFloat()
Thanks to Nic Werneck (https://xor0110.wordpress.com/2010/09/24/how-to-generate-floating-point-random...
Definition
random.cc:43
types.h
uint
unsigned int uint
Definition
types.h:33
code
foundation
util
random.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.