public virtual Int32[] GenerateIntegers(int length) { bool[] result = new bool[length * 32]; for (int i = 0; i < result.Length; i++) { result[i] = GenerateOneBit(); } return(SeriesConverter.BoolToInt32(result)); }
public virtual char[] GenerateBitsAsChars(int length) { char[] result = new char[length]; for (int i = 0; i < length; i++) { result[i] = SeriesConverter.BoolToChar(GenerateOneBit()); } return(result); }
public virtual byte[] GenerateBytes(int length) { bool[] result = new bool[length * 8]; for (int i = 0; i < result.Length; i++) { result[i] = GenerateOneBit(); } return(SeriesConverter.BoolToByteArray(result)); }