Re: Math.random()




Daniel Pitts wrote:
maya wrote:
(I want to have option of displaying photos in a random order instead of
in order of img-names (1.jpg, 2.jpg, 3.jpg, etc..))

Try putting the photos into a List object, and then calling
Collections.shuffle() with that list object as the parameter.

A clear winner. :-))


.



Relevant Pages

  • Re: Math.random()
    ... Try putting the photos into a List object, and then calling Collections.shufflewith that list object as the parameter. ... only problem now is how to add all nos. ... so imgs are named with nos. ...
    (comp.lang.java.help)
  • Re: Math.random()
    ... Try putting the photos into a List object, ... Collections.shufflewith that list object as the parameter. ... only problem now is how to add all nos. ... so imgs are named with nos. ...
    (comp.lang.java.help)
  • Re: Math.random()
    ... Try putting the photos into a List object, and then calling Collections.shufflewith that list object as the parameter. ... String[] textFileNames = directory.list{ ... I really need this today, for some photos I'm putting together for a friend overseas, sending with a friend who travels today.... ...
    (comp.lang.java.help)