Открытые члены | |
__construct ($seed="") | |
getNext () | |
rand ($min, $max) | |
randString ($length=10) | |
Class for generating pseudo random sequences. Never use it for any security or cryptographic purposes.
use \Bitrix\Main\Type\RandomSequence; $rs = new RandomSequence("A"); echo $rs->randString();
См. определение в файле randomsequence.php строка 13
__construct | ( | $seed = "" | ) |
Starts new sequence of pseudo random values.
string | $seed |
См. определение в файле randomsequence.php строка 24
getNext | ( | ) |
Returns next pseudo random value from the sequence. The result is signed 32 bit integer.
См. определение в файле randomsequence.php строка 37
rand | ( | $min, | |
$max ) |
Returns next pseudo random number value from the sequence. between $min and $max including borders.
int | $min | |
int | $max |
Bitrix\Main\NotSupportedException
См. определение в файле randomsequence.php строка 69
randString | ( | $length = 10 | ) |
Returns next pseudo random string value from the sequence.
int | $length |
См. определение в файле randomsequence.php строка 84