Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 351 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 351 Bytes

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
    }
}