Click or drag to resize
RandomBits Class
A static class of extension methods for generating random bits.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomBits

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static class RandomBits

The RandomBits type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBit
Returns a random unsigned integer with its lowest bit having exacty a half and half chance of being one or zero.
Public methodStatic memberBits32(IRandom)
Returns a random 32-bit unsigned integer with every bit having exacty a half and half chance of being one or zero.
Public methodStatic memberBits32(IRandom, Int32)
Returns a random 32-bit unsigned integer with its lowest bitCount bits having exacty a half and half chance of being one or zero.
Public methodStatic memberBits64(IRandom)
Returns a random 64-bit unsigned integer with every bit having exacty a half and half chance of being one or zero.
Public methodStatic memberBits64(IRandom, Int32)
Returns a random 64-bit unsigned integer with its lowest bitCount bits having exacty a half and half chance of being one or zero.
Public methodStatic memberMakeBitGenerator
Returns a bit generator which will produce a single bit per call to generator.Next().
Public methodStatic memberMakeBits32Generator(IRandom)
Returns a bit generator which will produce 32 bits per call to generator.Next().
Public methodStatic memberMakeBits32Generator(IRandom, Int32)
Returns a bit generator which will produce bitCount bits per call to generator.Next().
Public methodStatic memberMakeBits64Generator(IRandom)
Returns a bit generator which will produce 64 bits per call to generator.Next().
Public methodStatic memberMakeBits64Generator(IRandom, Int32)
Returns a bit generator which will produce bitCount bits per call to generator.Next().
Top
See Also