sometimes

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fifth

func Fifth() bool

Fifth returns true 20% of the time.

func Half

func Half() bool

Half returns true 50% of the time.

func Percent

func Percent(p int) bool

Percent takes a number (p) and returns true that percent of the time. If p is greater than or equal to 100, Percent always returns true. If p is less than or equal to 0, percent always returns false.

func Quarter

func Quarter() bool

Quarter returns true 25% of the time.

func Third

func Third() bool

Third returns true 33% of the time.

func ThreeQuarters

func ThreeQuarters() bool

ThreeQuarters returns true 75% of the time.

func TwoThirds

func TwoThirds() bool

TwoThirds returns true 66% of the time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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