Documentation

RandomSequence

RandomSequence class for generating pseudorandom sequences. Do not use for any cryptographic or protective purposes.

Method Description Available from version
getNext Returns the following pseudorandom sequence value.
rand Returns the following pseudorandom sequence numeric value.
randString Returns next pseudorandom string from sequence.
Constructor Launches new pseudorandom value sequence.

Example

use \Bitrix\Main\Type\RandomSequence;
 $rs = new RandomSequence("A");
 echo $rs->randString(); 


© «Bitrix24», 2001-2022
Up