fisher-yates

command
v0.0.0-...-736f5eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 3 Imported by: 0

README

Knuth / Fisher-Yates Shuffle

Implementation of the Fisher-Yates/Knuth shuffle

Fisher-Yates/Knuth Overview:

Randomly picks integers to swap elements in an ubiased manner.

Time Complexity: O(n)

Space Complexity: O(n)

Pseudocode: http://en.wikipedia.org/wiki/Fisher-Yates_shuffle

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL