for a single dimensional array normally I would use a for loop like the one below but I can't think of a way to do this that doesn't involve lots of loops.

```
for (int i = 0; i < myArray.length; ++i)
{
    myArray[i] = rnd.Next(1, 500);
}

```