also

for (i in 0 ..< Time[rand.nextInt(Time.size())) {