Tags
Asked 3 years ago
14 Jul 2021
Views 473
Imani

Imani posted

Generating UNIQUE Random Numbers within a range

Generating UNIQUE Random Numbers within a range
Phpworker

Phpworker
answered Jul 17 '21 00:00

rand() function will do job to generate random number with in range


rand(1,1100);


it generates a random number between 1 and 1100

rand() function in PHP , generate the number between a given range but it will not generate a unique number every time
Post Answer