php laravel random generate number with limit of 4 code example Example: php random integer echo random_int(0,50);