Lines Matching refs:numBits
41 public UInt32 GetRnd(int numBits) in GetRnd() argument
44 if (NumBits > numBits) in GetRnd()
46 result = Value & (((UInt32)1 << numBits) - 1); in GetRnd()
47 Value >>= numBits; in GetRnd()
48 NumBits -= numBits; in GetRnd()
51 numBits -= NumBits; in GetRnd()
52 result = (Value << numBits); in GetRnd()
54 result |= Value & (((UInt32)1 << numBits) - 1); in GetRnd()
55 Value >>= numBits; in GetRnd()
56 NumBits = 32 - numBits; in GetRnd()
79 UInt32 GetLogRandBits(int numBits) in GetLogRandBits() argument
81 UInt32 len = RG.GetRnd(numBits); in GetLogRandBits()