random

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package random implements a language independent method of producing random validator orderings. It is designed to use standard methods that could be implemented in any language or platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Permutation

func Permutation(seed common.Hash, n int) []int

Permutation produces an array with a random permutation of [0, 1, ... n-1] Based on the Fisher-Yates method https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle

Types

This section is empty.

Jump to

Keyboard shortcuts

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