Documentation ¶ Index ¶ func Shuffle(data sort.Interface) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Shuffle ¶ func Shuffle(data sort.Interface) Shuffle sorts data in a randomized order. It uses the default Source in math/rand, so if clients want to manipulate the outcome, they should call the appropriate functions in math/rand. TODO: Add ability to use custom Sources. Types ¶ This section is empty. Source Files ¶ View all Source files shuffle.go Click to show internal directories. Click to hide internal directories.