15 lines
221 B
Go
15 lines
221 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
seed := time.Now().UnixNano()
|
|
rand.Seed(seed)
|
|
fmt.Println("Seed: ", seed)
|
|
fmt.Println("My favorite number is", rand.Intn(10))
|
|
}
|