Download the PHP package fpastana/fisher-yates-shuffle without Composer
On this page you can find all versions of the php package fpastana/fisher-yates-shuffle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fpastana/fisher-yates-shuffle
More information about fpastana/fisher-yates-shuffle
Files in fpastana/fisher-yates-shuffle
Package fisher-yates-shuffle
Short Description Generate array of random numbers that never repeat themselves.
License
Informations about the package fisher-yates-shuffle
Technology Stack
- 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:
Run the Unit Tests
URL for 10000 randomly generated numbers
From Composer
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