We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I thought Collections was supposed to work. anyone knows what's wrong?
ArrayList bla = new ArrayList();
bla.add(1);
bla.add(2);
bla.add(3);
bla.add(4);
bla.add(5);
Collections.shuffle(bla);
Answers
just add
import java.util.Collections;
to your code, at the top. processing automatically includes a whole bunch, but, i guess, not that one.
Thnx! it worked lets see if i get some results from that shuffle :)
See Cannot find a class or type named "Xyz" from the Technical FAQ - Processing...