GUIDs and random numbers

The SMRandom class may be used to create random numbers and unique IDs (GUIDs).


SMRandom class

Function Return type Description
::CreateGuid() String Creates a 32 bit Globally Unique IDentifier (GUID). Example: 1bdb7fe220304ef18f2d030a36abc962
::CreateNumber() Integer Create random number between 0 and 100 (0 and 100 inclusive).
::CreateNumber($min:integer) Integer Create random number between the specified minimum and 100 (both inclusive).
::CreateNumber($min:integer, $max:integer) Integer Create random number between the specified minimum and maximum (both inclusive).