rand.Seed(time.Now().Unix())

This commit is contained in:
Mihalis Tsoukalos 2019-02-12 12:51:25 +02:00
commit c4fe5581fb

View file

@ -5,6 +5,7 @@ import (
"math/rand"
"os"
"strconv"
"time"
)
func random(min, max int) int {
@ -59,6 +60,7 @@ func main() {
m1 := make([][]int, row)
m2 := make([][]int, row)
rand.Seed(time.Now().Unix())
// Initialize m1 and m2 with random numbers
for i := 0; i < row; i++ {
for j := 0; j < col; j++ {