Lines Matching refs:numBits
36 public int GetRnd(int numBits) in GetRnd() argument
39 if (NumBits > numBits) in GetRnd()
41 result = Value & ((1 << numBits) - 1); in GetRnd()
42 Value >>>= numBits; in GetRnd() local
43 NumBits -= numBits; in GetRnd()
46 numBits -= NumBits; in GetRnd()
47 result = (Value << numBits); in GetRnd()
49 result |= Value & (((int)1 << numBits) - 1); in GetRnd()
50 Value >>>= numBits; in GetRnd() local
51 NumBits = 32 - numBits; in GetRnd()
73 int GetLogRandBits(int numBits) in GetLogRandBits() argument
75 int len = RG.GetRnd(numBits); in GetLogRandBits()