You can generate random samples for both one-dimensional and multi-dimensional arrays. For a 1-D array, you can specify the size parameter as an integer. For a multi-dimensional array, you can use a tuple to define the shape of the array.