定制 jp3cki/fisher-yates-shuffle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jp3cki/fisher-yates-shuffle

Composer 安装命令:

composer require jp3cki/fisher-yates-shuffle

包简介

The implementation of Fisher-Yates shuffle Algorithm.

README 文档

README

Simple implementation of Fisher-Yates Shuffle algorithm.

REQUIREMENTS

  • PHP 5.4 or later (strongly recommended PHP 5.6 or later)
  • Composer

USAGE

  1. Install via Composer.

    $ composer.phar require "jp3cki/fisher-yates-shuffle"

  2. Use jp3cki\fisherYatesShuffle\shuffle function.

PHP 5.6 or later

<?php
require_once(__DIR__ . '/vendor/autoload.php');

use function jp3cki\fisherYatesShuffle\shuffle as fy_shuffle;

$list = range(1, 10);

fy_shuffle($list);

var_dump($list);

PHP 5.4 or 5.5

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$list = range(1, 10);

\jp3cki\fisherYatesShuffle\shuffle::shuffle($list);

var_dump($list);

LICENSE

Released under the Unlicense. It means this library is a public domain software.

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unlicense
  • 更新时间: 2016-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固