This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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
I agree. Here's the link:
subject: random display of data ?
jQuery in Action, 3rd edition