mrhitman/chance

该软件包的最新版本(dev-master)没有提供许可信息。

随机生成库

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

This package is not auto-updated.

Last update: 2024-09-30 21:28:09 UTC


README

chance js 库的 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();