Click here to Skip to main content
15,896,456 members
Please Sign up or sign in to vote.
1.50/5 (4 votes)
See more:
Need help in generating a random number in c#
Posted

If you had made the effort to search first you would have found all these[^].
 
Share this answer
 
Refer Book "Head First C#" - O'reilly
This book explained concepts very good for beginners.
Head First C#[^]

And For Learning Random no.
Refer this links.

Random Number Generation[^]

Questions similar like your question..

http://social.msdn.microsoft.com/Forums/en-US/55fb3116-c978-4ac8-9381-a2605e16e256/how-do-you-create-a-random-number-in-c?forum=Vsexpressvcs[^]

Random numbers in C#[^]
 
Share this answer
 
Have a look at these articles. It will give you the basics and you can extrapolate from them what you need:

Random # Gen C#[^]

MSDN Random() C#[^]

DotNetPerls[^]
 
Share this answer
 
Have a look:
Generate Random Double Number[^]

There are several ways explained there
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900