Golang math/rand.Int63() function example
package math/rand
Golang math/rand.Int63() function usage example
package main
import (
"fmt"
"math/rand"
)
func main() {
n := 10
i := 0
for i < n {
x := rand.Int63()
fmt.Println(x)
i += 1
}
fmt.Println("i : ", i)
}
func main() {
Reference :
Advertisement
Something interesting
Tutorials
+7.3k Golang : File system scanning
+10.6k Golang : Select region of interest with mouse click and crop from image
+8.2k How to show different content from website server when AdBlock is detected?
+14.2k Golang : Convert IP version 6 address to integer or decimal number
+20.2k Golang : Reset or rewind io.Reader or io.Writer
+11.5k Use systeminfo to find out installed Windows Hotfix(s) or updates
+4.8k PHP : Extract part of a string starting from the middle
+52.6k Golang : How to get struct field and value by name
+13k Swift : Convert (cast) Int to String ?
+27.5k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+16.9k Golang : How to generate QR codes?