MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Rand

Function Rand

Source/Engine/Core/RandomStream.h:124–127  ·  view source on GitHub ↗

Returns a random number between 0 and 1.

Source from the content-addressed store, hash-verified

122 /// Returns a random number between 0 and 1.
123 /// </summary>
124 FORCE_INLINE float Rand() const
125 {
126 return GetFraction();
127 }
128
129 /// <summary>
130 /// Returns a random vector of unit size.

Callers 1

RandRangeFunction · 0.70

Calls 1

GetFractionFunction · 0.85

Tested by

no test coverage detected