Supported Versions: PHP 7, PHP 8
Generates cryptographically secure pseudo-random integers
random_int(int $minint $max): int
            $acquired $updated >= 1;

        }



        if (
random_int(1$this->lottery[1]) <= $this->lottery[0]) {

            
$this->connection->table($this->table)->where('expiration''<='time())->delete();

        }
    protected function configHitsLottery(array $config)

    {

        return 
random_int(1$config['lottery'][1]) <= $config['lottery'][0];

    }
    public function testDefaultCacheLifeTimeIsSetOnTaggableStore()

    {

        
$repo = new Repository(new ArrayStore());

        
$repo->setDefaultCacheTime(random_int(1100));



        
$store $repo->tags('foo');
    public function register()

    {

        
$this->app->bind('one.time.password', function () {

            return 
random_int(110);

        });



        
Queue::createPayloadUsing(function () {
    public function testRandom()

    {

        
$this->assertEquals(16strlen(Str::random()));

        
$randomInteger random_int(1100);

        
$this->assertEquals($randomIntegerstrlen(Str::random($randomInteger)));

        
$this->assertIsString(Str::random());

    }