Struct java_utils::util::Random

source ·
pub struct Random { /* private fields */ }
Expand description

A java.util.Random implementation that implements the logic from Java in pure Rust.

Implementations

Create a new Random object from the given seed

Return a new number with the given amount of bits

Return a new int

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.