Get the next random number in the range 0.0 <= X < 1.0.
(self)
| 895 | """ |
| 896 | |
| 897 | def random(self): |
| 898 | """Get the next random number in the range 0.0 <= X < 1.0.""" |
| 899 | return (int.from_bytes(_urandom(7)) >> 3) * RECIP_BPF |
| 900 | |
| 901 | def getrandbits(self, k): |
| 902 | """getrandbits(k) -> x. Generates an int with k random bits.""" |
no test coverage detected