def generate_array():
return [random.randint(10, HEIGHT - 100) for _ in range(ARRAY_SIZE)]
void generateArray() {
array.clear();
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution dist(10, HEIGHT - 100);
for (int i = 0; i < ARRAY_SIZE; i++) {
array.push_back(dist(gen));
}
}