Skip to content

SolarSystems-Software/rand-bool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rand-bool

Generate bits and booleans easily.

Usage

This example uses the default generator, but you can always make your own generator.

Generating random booleans

package main

import randbool "github.com/SolarSystems-Software/rand-bool"

func main() {
	if randbool.Default.NextBool() {
		// true
    } else {
		// false
    }
}

About

Generate random bits and booleans easily in Go

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages