pub trait IRandom_2Methods: IRandom_2 {
Show 20 methods
// Provided methods
fn ctor(self) { ... }
fn ctor_2(self, seed: impl Into<u32>) { ... }
fn initialize(self) { ... }
fn initialize_2(self, v: impl Into<u32>) { ... }
fn peek(self) -> i32 { ... }
fn spin(self, count: impl Into<i32>) -> Random_2 { ... }
fn get_value(self) -> i32 { ... }
fn get_f01(self) -> f32 { ... }
fn get_value_2(self, num: impl Into<i32>) -> i32 { ... }
fn get_min_max(self, min: impl Into<i32>, max: impl Into<i32>) -> i32 { ... }
fn get_min_max_2(self, min: impl Into<f32>, max: impl Into<f32>) -> f32 { ... }
fn get_max_min(self, min: impl Into<i32>, max: impl Into<i32>) -> i32 { ... }
fn get_inside_unit_sphere(self) -> Vector3 { ... }
fn get_inside_unit_circle(self) -> Vector2 { ... }
fn is_probability100(self, percent: impl Into<f32>) -> bool { ... }
fn shuffle<M0: IlType + Copy + ClassIdentity>(
self,
list: impl Into<List_1<M0>>,
) { ... }
fn get_index(self, ratio_table: impl Into<Array<i32>>) -> i32 { ... }
fn get_seed(self) -> RandomSeed { ... }
fn set_seed(self, value: impl Into<RandomSeed>) { ... }
fn dump(self) { ... }
}Provided Methods§
Sourcefn initialize(self)
fn initialize(self)
Initialize() overload
Sourcefn initialize_2(self, v: impl Into<u32>)
fn initialize_2(self, v: impl Into<u32>)
Initialize(u32) overload
Sourcefn get_value_2(self, num: impl Into<i32>) -> i32
fn get_value_2(self, num: impl Into<i32>) -> i32
GetValue(i32) overload
Sourcefn get_min_max(self, min: impl Into<i32>, max: impl Into<i32>) -> i32
fn get_min_max(self, min: impl Into<i32>, max: impl Into<i32>) -> i32
GetMinMax(i32, i32) overload
Sourcefn get_min_max_2(self, min: impl Into<f32>, max: impl Into<f32>) -> f32
fn get_min_max_2(self, min: impl Into<f32>, max: impl Into<f32>) -> f32
GetMinMax(f32, f32) overload
Sourcefn get_max_min(self, min: impl Into<i32>, max: impl Into<i32>) -> i32
fn get_max_min(self, min: impl Into<i32>, max: impl Into<i32>) -> i32
GetMaxMin(i32, i32) overload
Sourcefn get_inside_unit_sphere(self) -> Vector3
fn get_inside_unit_sphere(self) -> Vector3
get_insideUnitSphere() overload
Sourcefn get_inside_unit_circle(self) -> Vector2
fn get_inside_unit_circle(self) -> Vector2
get_insideUnitCircle() overload
Sourcefn is_probability100(self, percent: impl Into<f32>) -> bool
fn is_probability100(self, percent: impl Into<f32>) -> bool
IsProbability100(f32) overload
fn shuffle<M0: IlType + Copy + ClassIdentity>(self, list: impl Into<List_1<M0>>)
Sourcefn get_index(self, ratio_table: impl Into<Array<i32>>) -> i32
fn get_index(self, ratio_table: impl Into<Array<i32>>) -> i32
GetIndex(::unity::Array<i32>) overload
Sourcefn get_seed(self) -> RandomSeed
fn get_seed(self) -> RandomSeed
get_Seed() overload
Sourcefn set_seed(self, value: impl Into<RandomSeed>)
fn set_seed(self, value: impl Into<RandomSeed>)
set_Seed(crate::app::randomseed::RandomSeed) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IRandom_2> IRandom_2Methods for __T
Available on crate feature
app-random_2 only.