2021-11-21 01:05:20 +00:00
|
|
|
|
package arbitrary
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"math/rand"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
Default = New( rand.NewSource( time.Now().UTC().UnixNano() ) )
|
|
|
|
|
)
|
|
|
|
|
|
2021-11-21 01:46:15 +00:00
|
|
|
|
// Bool returns an arbitrary bool.
|
2021-11-21 01:05:20 +00:00
|
|
|
|
func Bool() bool {
|
|
|
|
|
return Default.Bool()
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-21 01:46:15 +00:00
|
|
|
|
// PhoneNumber returns an arbitrary phone‐number.
|
|
|
|
|
func PhoneNumber() string {
|
|
|
|
|
return Default.PhoneNumber()
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-21 01:05:20 +00:00
|
|
|
|
func Runes(a ...interface{}) []rune {
|
|
|
|
|
return Default.Runes(a...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func String(a ...interface{}) string {
|
|
|
|
|
return Default.String(a...)
|
|
|
|
|
}
|