// Package import occurs with import paths, such as "fmt"
// or "math/rand". By convention, last element of the import
// path and the package name is the same.

package main

// This is a factored import statement
import (
    "fmt"
    "math/rand"
    "time"
)

func main() {
    rand.Seed(time.Now().UTC().UnixNano())
    fmt.Println("My favourite number is", rand.Intn(10))
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: