pub struct PythonRandom { /* private fields */ }Implementations§
Source§impl PythonRandom
impl PythonRandom
Sourcepub fn new(seed: i64) -> PythonRandom
pub fn new(seed: i64) -> PythonRandom
random.Random(seed): the seed’s absolute value, split into 32-bit words from the
least significant, is the key of init_by_array.
Sourcepub fn getrandbits(&mut self, k: u32) -> u32
pub fn getrandbits(&mut self, k: u32) -> u32
getrandbits(k) for 1 <= k <= 32.
Auto Trait Implementations§
impl Freeze for PythonRandom
impl RefUnwindSafe for PythonRandom
impl Send for PythonRandom
impl Sync for PythonRandom
impl Unpin for PythonRandom
impl UnwindSafe for PythonRandom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more