will be helpful for those in need Considering the case of cubes, runif is perfectly flexible to achieve all that. In particular, we can specify the number of points to be generated, and for each axis we may also specify a different range. For instance,

```
lower <- c(0, 10, 20)
upper <- c(1, 11, 21)
n <- 5
matrix(runif(n * 3, lower, upper), ncol = 3, byrow = TRUE)
# [,1] [,2] [,3]
# [1,] 0.03372777 10.99940 20.03487
# [2,] 0.33839128 10.91506 20.61724
# [3,] 0.28628535 10.73780 20.83405
# [4,] 0.31427078 10.49257 20.69737
# [5,] 0.64146235 10.64392 20.97785
```