mrhitman/chance

There is no license information available for the latest version (dev-master) of this package.

random generation library

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mrhitman/chance

dev-master 2020-02-11 08:40 UTC

This package is not auto-updated.

Last update: 2025-09-30 02:15:32 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();