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

Function GetBool

Source/Engine/Engine/RandomStream.cs:90–95  ·  view source on GitHub ↗

Returns a random boolean.

()

Source from the content-addressed store, hash-verified

88 /// Returns a random boolean.
89 /// </summary>
90 public unsafe bool GetBool()
91 {
92 MutateSeed();
93 fixed (int* seedPtr = &_seed)
94 return *seedPtr < (uint.MaxValue / 2);
95 }
96
97 /// <summary>
98 /// Returns a random number between 0 and uint.MaxValue.

Callers 4

DeserializeMethod · 0.50
DeserializeMethod · 0.50
DeserializeMethod · 0.50
DeserializeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected