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.....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaish MathewsPosted Mar 30, 2010, 4:23 AM
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.