How to generate cryptographically random numbers?

How do i generate more than 1 random numbers in c#?

  • I want to generate 10 numbers between 1 and 20, there can be duplicate values. I have tried using: Random RandomNo = new Random(); No1 = RandomNum1.Next(20); No1 = RandomNum2.Next(20); No1 = RandomNum3.Next(20); ...................etc I always get the same number 10 times! PLZ SOMEONE PROVIDE THE CODE FOR ME!

  • Answer:

    Try Random RandomNo = new Random(); No1 = RandomNo.Next(20); Have fun.

Pad at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.