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