Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
GeneralRe: [Resolved] Pin
Dave Kreskowiak10-Feb-05 6:47
mveDave Kreskowiak10-Feb-05 6:47 
GeneralRe: [Resolved] Pin
Richard Parsons11-Feb-05 5:54
Richard Parsons11-Feb-05 5:54 
GeneralRe: [Resolved] Pin
TRekrap15-Feb-05 3:35
TRekrap15-Feb-05 3:35 
AnswerRe: can we use two diffrent namespaces Pin
Dariush Tasdighi11-Feb-05 6:38
Dariush Tasdighi11-Feb-05 6:38 
Generalretrieving images from access database Pin
Anonymous9-Feb-05 13:55
Anonymous9-Feb-05 13:55 
GeneralRe: retrieving images from access database Pin
Heath Stewart9-Feb-05 14:39
protectorHeath Stewart9-Feb-05 14:39 
GeneralGenerate a random number in a range... Pin
new_phoenix9-Feb-05 12:00
new_phoenix9-Feb-05 12:00 
GeneralRe: Generate a random number in a range... Pin
Christian Graus9-Feb-05 12:28
protectorChristian Graus9-Feb-05 12:28 
The Random instance should be seeded as well, to get a truly random sequence ( or as close as you could hope, obviously :P )

yes, if you get a number from 0 to 20 and add one, you will get a range of 1-21. Try maybe something like this:

System.Random rnd = new System.Random(DateTime.Now.Ticks);
int randonNumber = (int)rnd.Next(1, 20);


Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: Generate a random number in a range... Pin
new_phoenix9-Feb-05 13:59
new_phoenix9-Feb-05 13:59 
GeneralRe: Generate a random number in a range... Pin
Christian Graus9-Feb-05 14:13
protectorChristian Graus9-Feb-05 14:13 
GeneralRe: Generate a random number in a range... Pin
S. Senthil Kumar9-Feb-05 19:23
S. Senthil Kumar9-Feb-05 19:23 
GeneralRe: Generate a random number in a range... Pin
Stefan Troschuetz9-Feb-05 21:43
Stefan Troschuetz9-Feb-05 21:43 
GeneralRe: Generate a random number in a range... Pin
Stefan Troschuetz9-Feb-05 21:39
Stefan Troschuetz9-Feb-05 21:39 
GeneralActive directory 2003 and Exhange 2003 Pin
MarkusJ_NZ9-Feb-05 10:41
MarkusJ_NZ9-Feb-05 10:41 
GeneralInteresting studio 2003 bug. Pin
Anonymous9-Feb-05 10:32
Anonymous9-Feb-05 10:32 
GeneralRe: Interesting studio 2003 bug. Pin
Anonymous9-Feb-05 10:47
Anonymous9-Feb-05 10:47 
Generalprocess migration Pin
mpapeo9-Feb-05 10:22
mpapeo9-Feb-05 10:22 
GeneralRe: process migration Pin
Heath Stewart9-Feb-05 14:44
protectorHeath Stewart9-Feb-05 14:44 
GeneralBasic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 9:27
Soumya Mulukutla9-Feb-05 9:27 
GeneralRe: Basic Deployment Doubt Pin
S. Senthil Kumar9-Feb-05 9:30
S. Senthil Kumar9-Feb-05 9:30 
GeneralRe: Basic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 10:04
Soumya Mulukutla9-Feb-05 10:04 
GeneralRe: Basic Deployment Doubt Pin
Judah Gabriel Himango9-Feb-05 10:14
sponsorJudah Gabriel Himango9-Feb-05 10:14 
GeneralRe: Basic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 10:32
Soumya Mulukutla9-Feb-05 10:32 
GeneralRe: Basic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 10:35
Soumya Mulukutla9-Feb-05 10:35 
GeneralRe: Basic Deployment Doubt Pin
Judah Gabriel Himango9-Feb-05 11:01
sponsorJudah Gabriel Himango9-Feb-05 11:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.