aspose file tools
The moose likes Java in General and the fly likes random display of data ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "random display of data ?" Watch "random display of data ?" New topic

random display of data ?

Mahesh Bhatt
Ranch Hand

Joined: Sep 15, 2004
Posts: 88
Hi All,

I am developing a small application and am struck at a problem, I have a vector that has some questions as Strings, I generate an array of random numbers and display the items in the question vector as per the random array.Now I have two or more vectors with questions and i have the same array of random numbers, how do I dispaly equal number of questions from these vectors.


Impossible is I M Possible
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Is it as simple as this?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
It is sorta covered in the JavaRanch Style Guide.
subject: random display of data ?