Randomizing an arraylist

is there an easy way to randomize the objects in an array list? (randomize their locations?)

if there's not, could someone walk me through the hard way?

I would think that you make a new array, then use a random number generator to come up with numbers 0-arraylist.size(), as the program goes throught the original array, put the current spot's contents in the random spot. the only problem with this is how would i keep track of all the listed numbers, particurally if I am randomizing an array of several hundred thousand objects? (e.i. a dictionary file...)

[583 byte] By [djfkdljflksdja] at [2007-10-2 3:15:33]
# 1
Collections.shuffle()
yawmarka at 2007-7-15 21:42:45 > top of Java-index,Java Essentials,New To Java...
# 2
thanks!
djfkdljflksdja at 2007-7-15 21:42:45 > top of Java-index,Java Essentials,New To Java...