mrhitman / chance
There is no license information available for the latest version (dev-master) of this package.
random generation library
dev-master
2020-02-11 08:40 UTC
Requires (Dev)
- phpunit/phpunit: ^8.4
- spatie/phpunit-watcher: ^1.21
This package is not auto-updated.
Last update: 2025-06-24 00:57:44 UTC
README
chance js library clone for php
$chance = new Chance($seed);
$chance->natural(['min' => 1, 'max' => 100]);
$chance->integer(['min' => -10, 'max' => 10]);
$chance->floating(['min' => -10, 'max' => 10, 'fixed' => 3]);
$chance->prime();
$chance->domain();
$chance->color();
$chance->ip();
$chance->age();
$chance->gender();
$chance->email();
$chance->coin();
$chance->string();
$chance->bool();
$chance->boolean();
$chance->letter();
$chance->word();