hello,
i am using ms-access database i store the 100 question i want to retrive any 10 question randomly with timer ,
how i code for it
plz give me any suggestion
thank you.....
Randomly select question in textbox
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jaish MathewsRank #225 · 11K reputationPosted Mar 30, 2010, 12:23 AM EDT
Try below method
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
RandomNumber(1, 100);
You can execute a 10 times loop for getting 10 random numbers.