C# Класс X.Viewer.UrhoSharp.RandomHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
NextRandom ( ) : float

Return a random float between 0.0 (inclusive) and 1.0 (exclusive.)

NextRandom ( float range ) : float

Return a random float between 0.0 and range, inclusive from both ends.

NextRandom ( float min, float max ) : float

Return a random float between min and max, inclusive from both ends.

NextRandom ( int min, int max ) : int

Return a random integer between min and max - 1.

Описание методов

NextRandom() публичный статический Метод

Return a random float between 0.0 (inclusive) and 1.0 (exclusive.)
public static NextRandom ( ) : float
Результат float

NextRandom() публичный статический Метод

Return a random float between 0.0 and range, inclusive from both ends.
public static NextRandom ( float range ) : float
range float
Результат float

NextRandom() публичный статический Метод

Return a random float between min and max, inclusive from both ends.
public static NextRandom ( float min, float max ) : float
min float
max float
Результат float

NextRandom() публичный статический Метод

Return a random integer between min and max - 1.
public static NextRandom ( int min, int max ) : int
min int
max int
Результат int