Discover Packages
github.com/pastjean/codebuddy
pairs
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Mar 31, 2016
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GeneratePairs takes a src array and returns an array of pairs.
If the number of elements in the src array is not even the last pair is gonna
have an additional element
Shuffle shuffles an array.
src is the source array that is gonna be shuffled, a copy is made.
seed is an integer to initialize a randomized source. The seed can be
something like time.Now().UnixNano()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.