funcs with default

master
Charles Iliya Krempeaux 2021-11-20 17:05:20 -08:00
parent f898587a73
commit 69d97404f4
1 changed files with 22 additions and 0 deletions

22
default.go 100644
View File

@ -0,0 +1,22 @@
package arbitrary
import (
"math/rand"
"time"
)
var (
Default = New( rand.NewSource( time.Now().UTC().UnixNano() ) )
)
func Bool() bool {
return Default.Bool()
}
func Runes(a ...interface{}) []rune {
return Default.Runes(a...)
}
func String(a ...interface{}) string {
return Default.String(a...)
}