pub struct JavaRandom { /* private fields */ }
Implementations§
Source§impl JavaRandom
impl JavaRandom
pub fn new(seed: i64) -> JavaRandom
pub fn new_seeded() -> JavaRandom
pub fn new_blank() -> JavaRandom
pub fn set_seed(&mut self, seed: i64)
pub fn get_seed(&self) -> i64
pub fn next_blank(&mut self)
pub fn next_int(&mut self) -> i32
pub fn next_int_bounded(&mut self, bound: i32) -> i32
pub fn next_long(&mut self) -> i64
pub fn next_float(&mut self) -> f32
pub fn next_double(&mut self) -> f64
pub fn next_insecure_uuid(&mut self) -> Uuid
Trait Implementations§
Source§impl Clone for JavaRandom
impl Clone for JavaRandom
Source§fn clone(&self) -> JavaRandom
fn clone(&self) -> JavaRandom
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for JavaRandom
impl RefUnwindSafe for JavaRandom
impl Send for JavaRandom
impl Sync for JavaRandom
impl Unpin for JavaRandom
impl UnwindSafe for JavaRandom
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