It sounds like you've a shuffling class/method in mind rather than sorting class/method. Because, sort will order the arraylist the same way everytime.
hi
I'm not a java progrommer, but I happen to post another question on this forum and saw your post.
there is a similar problem in the javascript forum which someone solved very efficiently. It uses a classic loop and the built-in pseudorandom function in javascript. maybe ther is an equivalent class in java you could use the same way?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.