For loop ends with its body and dont go furter
I need find wIndex, check if its in the slice, if no add value Where I go wrong?
var x make(map[int]float32, 10)
var s []int
var value = 100
for i := 1; i <= 10; i++ {
wIndex := int(rand.Intn(len(x))) // random Index choice among map values
for _, v := range s { //end of loop here (if exactly it returnts to loop before)
if v != wIndex {
s = append(s, wIndex)
x[wIndex] += value
}
}
}