// generate indexes generates randomly an amount of number
// inside a range. The amount and the range is provided.
generate indexes generates randomly an amount of number
inside a range. The amount and the range is provided.
// generate indexes generates randomly an amount of number // inside a range . The amount and the range is provided .
func generateIndexes(cantidad int, rango int) []int {
	rand.Seed(time.Now().UnixNano())
	var resp []int = make([]int, cantidad)
	for i := 1; i < cantidad; i++ {
		var value int = rand.Intn(rango)
		var b bool = find(resp, value)
		for b {
			value = rand.Intn(rango)
			b = find(resp, value)
		}
		resp[i] = value
	}
	return resp
}
func generateIndexes ( cantidad int , rango int ) [ ] int { rand . Seed ( time . Now ( ) . UnixNano ( ) ) var resp [ ] int = make ( [ ] int , cantidad ) for i := 1 ; i < cantidad ; i ++ { var value int = rand . Intn ( rango ) var b bool = find ( resp , value ) for b { value = rand . Intn ( rango ) b = find ( resp , value ) } resp [ i ] = value } return resp }
generate indexes generates randomly an amount of number
inside a range.
generate indexes generates randomly an amount of number inside a range .