Documentation ¶
Index ¶
- Constants
- func Fixed(val float64, precision int) float64
- func Rand() *mrand.Rand
- func RandomBetween(min, max int) int
- func RandomBetweenV2(min int, max int) int
- func RandomHex(n int) (string, error)
- func RandomString(n int) string
- func RandomWheel(rate, base float64) bool
- func RandomWheelWithBigInt(rate, base *big.Int) (bool, error)
- func Round(val float64, precision int) float64
- func Salt() *big.Int
Constants ¶
View Source
const ( RatioOf100000000 int = 100_000_000 RatioOf100000000f float64 = 100_000_000 RatioOf10000000 int = 10_000_000 RatioOf10000000f float64 = 10_000_000 RatioOf1000000 int = 1_000_000 RatioOf1000000f float64 = 1_000_000 RatioOf10000 int = 10_000 RatioOf10000f float64 = 10_000 RatioOf100 int = 100 RatioOf100f float64 = 100 )
Variables ¶
This section is empty.
Functions ¶
func RandomBetween ¶
func RandomBetweenV2 ¶
func RandomString ¶
func RandomWheel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.