Example #1
0
 // Random Fixed Float between [0, 1]
 public FixedFloat NextFloat()
 {
     // The magic number below is 1/(2^32 + 2).
     // The result is strictly between 0 and 1.
     return(FixedFloat.Create((NextUnsignedInt() + 1.0) * 2.328306435454494e-10));
 }