Nebula
Loading...
Searching...
No Matches
random.h File Reference

Detailed Description

Contains random-number helper functions.

#include "core/types.h"

Go to the source code of this file.

Namespaces

namespace  Util
 A pinned array is an array which manages its own virtual memory.
 

Functions

uint Util::FastRandom ()
 XorShift128 implementation.
 
float Util::RandomFloat ()
 Thanks to Nic Werneck (https://xor0110.wordpress.com/2010/09/24/how-to-generate-floating-point-random-numbers-efficiently/)
 
float Util::RandomFloatNTP ()
 Produces an xorshift128 psuedo based floating point random number in range -1..1 Note that this is not a truely random random number generator.