snakia.random.os
Classes
|
A random number generator that uses the OS (cryptographically secure) to generate random bytes. |
|
A random number generator. |
- class snakia.random.os.OSRandom[source]
Bases:
Random[None]A random number generator that uses the OS (cryptographically secure) to generate random bytes.
- choice(seq)
Return a random element from a non-empty sequence.
- Return type:
TypeVar(T)
- shuffle(seq)
Shuffle a sequence in place.
- Return type:
TypeVar(M, bound=MutableSequence[Any])