Documentation ¶
Overview ¶
Utilities for float64.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rand ¶
func Rand() float64
Returns completly random float64. Might be abnormal or special.
Example ¶
for i := 10; i > 0; i-- { for i := 5; i > 0; i-- { print(Rand(), "\t") } println() } //:-) Output:
Output:
func RandNormal ¶
func RandNormal() float64
Returns random, not-abnormal, not-special (not NaN, not Inf), `float64`
Example ¶
for i := 10; i > 0; i-- { for i := 5; i > 0; i-- { print(RandNormal(), "\t") } println() } //:-) Output:
Output:
func WithRandSign ¶
Returns either `fl` or `-fl` .
Example ¶
for i := 10; i > 0; i-- { for i := 5; i > 0; i-- { print(WithRandSign(rand.Float64()), "\t") } println() } //:-) Output:
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.