numbers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factorial

func Factorial(n int) uint64

Factorial calculates the factorial of the provided integer

func GetRandomInt

func GetRandomInt(maxPossibleValue int) int

GetRandomInt returns a random integer between 1 and maxPossibleValue. If maxPossibleValue is less than or equal to 0, then 0 is returned

func Permutation

func Permutation(n int, r int) float64

Permutation calculates the permutation as n P r where n is the number of choices for the items and r the number of ordered items

Types

This section is empty.

Jump to

Keyboard shortcuts

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