shuffler

package
Version: v0.0.0-...-9d0d9e6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2015 License: GPL-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCount

func GetCount() int

Get the counter value

func Shuffle

func Shuffle(s Shufflable)

func WeightedShuffle

func WeightedShuffle(w WeightedShufflable)

Types

type Shufflable

type Shufflable interface {
	Len() int
	Swap(i, j int)
}

type WeightedShufflable

type WeightedShufflable interface {
	Shufflable
	Weight(i int) int
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL