func BenchmarkSolve10(b *testing.B) { //benchmark function starts with "Benchmark" and takes a pointer to type testing.B for i := 0; i < b.N; i++ { //use b.N for looping rand.Seed(time.Now().UnixNano()) //set the seed b := playNMoves(10) b.SolveBoard() } }