承接 fpastana/fisher-yates-shuffle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fpastana/fisher-yates-shuffle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require fpastana/fisher-yates-shuffle

包简介

Generate array of random numbers that never repeat themselves.

README 文档

README

  • PHP 8.0: Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
  • Composer 2.5.3: A Dependency Manager for PHP.
  • PHPUnit 10: Sebastian Bergmann's framework for unit test. PHPUnit requires the dom and json extensions, which are normally enabled by default.

From GitHub:

Install the composer packages:

composer install

Run the Unit Tests

./vendor/bin/phpunit tests/Unit --color

URL for 10000 randomly generated numbers

http://127.0.0.1:8000/?initialNumber=1&finalNumber=10000

From Composer

composer require fpastana/fisher-yates-shuffle
<?php 

use fpastana\Numbers;

$randomNumbers = new Numbers(1, 100);

$aNumbers = $randomNumbers->myShuffle();

About the APP

The Fisher–Yates shuffle is an algorithm for generating a random permutation of a finite sequence—in plain terms, the algorithm shuffles the sequence. The algorithm effectively puts all the elements into a hat; it continually determines the next element by randomly drawing an element from the hat until no elements remain. The algorithm produces an unbiased permutation: every permutation is equally likely. The modern version of the algorithm is efficient: it takes time proportional to the number of items being shuffled and shuffles them in place.

The Fisher–Yates shuffle is named after Ronald Fisher and Frank Yates, who first described it, and is also known as the Knuth shuffle after Donald Knuth. A variant of the Fisher–Yates shuffle, known as Sattolo's algorithm, may be used to generate random cyclic permutations of length n instead of random permutations.

Source: Wikipedia: Fisher–Yates shuffle

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固