Skip to content

Instantly share code, notes, and snippets.

@akawashiro
Created June 11, 2019 03:50
Show Gist options
  • Save akawashiro/f91952440b907c90d35dbe360b27b959 to your computer and use it in GitHub Desktop.
Save akawashiro/f91952440b907c90d35dbe360b27b959 to your computer and use it in GitHub Desktop.
package main
import(
"fmt"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
var l = rand.Intn(10)
a := make([]int, l)
a[l-1] = 3
fmt.Printf("Hello world\n")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment