refactor: slice exercises 16-21

This commit is contained in:
Inanc Gumus
2019-08-18 15:32:48 +03:00
parent 5d6b493e75
commit 4f60812589
10 changed files with 68 additions and 52 deletions

View File

@ -9,13 +9,10 @@ package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
nums := rand.Perm(100)
nums := []int{56, 89, 15, 25, 30, 50}
// ----------------------------------------
// breaks the connection: