BSD Ports

devel/p5-Algorithm-Numerical-Shuffle 2009110301_1 DragonFly

Shuffle a list

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, perl5
Package size
6.2 KiB, 7.5 KiB installed

Description

Algorithm::Numerical::Shuffle

Shuffle is a perl module which performs a one pass, fair shuffle on a list. If the list is passed as a reference to an array, the shuffle is done in situ.

The running time of the algorithm is linear in the size of the list. For an in situ shuffle, the memory overhead is constant; otherwise, linear extra memory is used.

The algorithm used is discussed by Knuth [3]. It was first published by Fisher and Yates [2], and later by Durstenfeld [1].

In the other systems

SystemPortVersion
DragonFlydevel/p5-Algorithm-Numerical-Shuffle2009110301_1
FreeBSDdevel/p5-Algorithm-Numerical-Shuffle2009110301_1
HardenedBSDdevel/p5-Algorithm-Numerical-Shuffle2009110301_1
GhostBSDdevel/p5-Algorithm-Numerical-Shuffle2009110301_1

Install

Binary package:

pkg install p5-Algorithm-Numerical-Shuffle

From DPorts:

cd /usr/dports/devel/p5-Algorithm-Numerical-Shuffle && make install clean

Dependencies

Run dependencies 1

No port depends on this one.