I have this code and i am wondering if it can be executed without the while loop.
quantity <- vector()
while (length(quantity) < 2) {
Random <- runif(10, 0, 1)
quantity <- which(Random < 0.3)
}
quantity