diff --git a/example.go b/example.go new file mode 100644 index 0000000..2d1d53a --- /dev/null +++ b/example.go @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + //mathRand "math/rand" + cryptoRand "crypto/rand" + "math/big" + "time" +) + +func main() { + fmt.Println("Hello, playground", time.Now()) + nBig, err := cryptoRand.Int(cryptoRand.Reader, big.NewInt(27)) + if err != nil { + panic(err) + } + n := nBig.Int64() + + //b := []byte{0} + //r := cryptoRand.Reader.Read(b) + fmt.Println("r", n) + //fmt.Println("Random", mathRand.Seed(r).Intn(9)) +}