Skip to main content

IRandom_2Methods

Trait IRandom_2Methods 

Source
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§

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, seed: impl Into<u32>)

.ctor(u32) overload

Source

fn initialize(self)

Initialize() overload

Source

fn initialize_2(self, v: impl Into<u32>)

Initialize(u32) overload

Source

fn peek(self) -> i32

Peek() overload

Source

fn spin(self, count: impl Into<i32>) -> Random_2

Spin(i32) overload

Source

fn get_value(self) -> i32

GetValue() overload

Source

fn get_f01(self) -> f32

GetF01() overload

Source

fn get_value_2(self, num: impl Into<i32>) -> i32

GetValue(i32) overload

Source

fn get_min_max(self, min: impl Into<i32>, max: impl Into<i32>) -> i32

GetMinMax(i32, i32) overload

Source

fn get_min_max_2(self, min: impl Into<f32>, max: impl Into<f32>) -> f32

GetMinMax(f32, f32) overload

Source

fn get_max_min(self, min: impl Into<i32>, max: impl Into<i32>) -> i32

GetMaxMin(i32, i32) overload

Source

fn get_inside_unit_sphere(self) -> Vector3

get_insideUnitSphere() overload

Source

fn get_inside_unit_circle(self) -> Vector2

get_insideUnitCircle() overload

Source

fn is_probability100(self, percent: impl Into<f32>) -> bool

IsProbability100(f32) overload

Source

fn shuffle<M0: IlType + Copy + ClassIdentity>(self, list: impl Into<List_1<M0>>)

Source

fn get_index(self, ratio_table: impl Into<Array<i32>>) -> i32

GetIndex(::unity::Array<i32>) overload

Source

fn get_seed(self) -> RandomSeed

get_Seed() overload

Source

fn set_seed(self, value: impl Into<RandomSeed>)

set_Seed(crate::app::randomseed::RandomSeed) overload

Source

fn dump(self)

Dump() 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§

Source§

impl<__T: IRandom_2> IRandom_2Methods for __T

Available on crate feature app-random_2 only.