• Post Reply Bookmark Topic Watch Topic
  • New Topic

random display of data ?

 
Mahesh Bhatt
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

regards
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it as simple as this?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!