{"modulePath":"github.com/hellobyte-dev/tester-utils","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package random\n\n## Functions\n\n```go\nfunc Init()\n```\nInit must be called at the start of every program.\n\nIf HELLOBYTE\\_RANDOM\\_SEED is set, it will be used to generate predictable random numbers.\n\n```go\nfunc RandomElementFromArray[T any](arr []T) T\n```\n\n```go\nfunc RandomElementsFromArray[T any](arr []T, count int) []T\n```\n\n```go\nfunc RandomFloat64(min, max float64) float64\n```\nRandomFloat64 returns a random float64 number between \\[min, max)\n\n```go\nfunc RandomFloat64s(min, max float64, count int) []float64\n```\nRandomFloat64s returns an array of \\`count\\` random Float64 values between \\[min, max).\n\n```go\nfunc RandomInt(min, max int) int\n```\nRandomInt returns a random integer between \\[min, max).\n\n```go\nfunc RandomInts(min, max int, count int) []int\n```\nRandomInts returns an array of \\`count\\` unique random integers between \\[min, max). It panics if count is greater than the range of possible values.\n\n```go\nfunc RandomString() string\n```\nRandomString returns a random string of 6 words.\n\n```go\nfunc RandomStrings(n int) []string\n```\nRandomStrings returns a random list of n strings.\n\n```go\nfunc RandomWord() string\n```\nRandomWord returns a random word from the list of words.\n\n```go\nfunc RandomWords(n int) []string\n```\nRandomWords returns a random list of n words.\n\n```go\nfunc ShuffleArray[T any](arr []T) []T\n```\n\n","path":"github.com/hellobyte-dev/tester-utils/random","name":"random","synopsis":"","isRedistributable":true}
