Golang math/rand.NormFloat64() function example
package math/rand
Golang math/rand.NormFloat64() function usage example
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
r := rand.New(rand.NewSource(time.Now().UnixNano()))
fmt.Println(r.NormFloat64())
}
Reference :
Advertisement
Something interesting
Tutorials
+6.3k PHP : How to handle URI or URL with non-ASCII characters such as Chinese/Japanese/Korean(CJK) ?
+16.4k Golang : Test floating point numbers not-a-number and infinite example
+9.6k Javascript : Read/parse JSON data from HTTP response
+4.1k Javascript : Empty an array example
+6.2k PHP : Get client IP address
+8.2k Golang : Add build version and other information in executables
+5.2k Golang : The Tao of importing package
+13.6k Golang : Query string with space symbol %20 in between
+22k Fix "Failed to start php5-fpm.service: Unit php5-fpm.service is masked."
+26.7k Golang : How to check if a connection to database is still alive ?
+7.6k Javascript : Push notifications to browser with Push.js
+37.7k Golang : Comparing date or timestamp