Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need the code for Randomization of numbers using c# Pin
vasavi.p4-Oct-09 22:54
vasavi.p4-Oct-09 22:54 
GeneralRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff4-Oct-09 23:01
mveOriginalGriff4-Oct-09 23:01 
AnswerRe: Need the code for Randomization of numbers using c# Pin
Richard MacCutchan4-Oct-09 23:23
mveRichard MacCutchan4-Oct-09 23:23 
GeneralRe: Need the code for Randomization of numbers using c# Pin
J4amieC4-Oct-09 23:29
J4amieC4-Oct-09 23:29 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Richard MacCutchan5-Oct-09 0:45
mveRichard MacCutchan5-Oct-09 0:45 
GeneralRe: Need the code for Randomization of numbers using c# Pin
J4amieC5-Oct-09 0:59
J4amieC5-Oct-09 0:59 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Richard MacCutchan5-Oct-09 6:19
mveRichard MacCutchan5-Oct-09 6:19 
GeneralRe: Need the code for Randomization of numbers using c# Pin
J4amieC4-Oct-09 23:28
J4amieC4-Oct-09 23:28 
vasavi.p wrote:
and try with this too[this will go to infinite loop]


Now for extra credit (that is, beyond being able to blindly paste your code into this window) can you tell us why this goes into an infinite loop?

Hint:-

Documentation :Random.Next(Int32,Int32)[^]

Relevant part of documentation:

minValue
    Type: System..::.Int32
    The inclusive lower bound of the random number returned.

maxValue
    Type: System..::.Int32
    The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.

GeneralRe: Need the code for Randomization of numbers using c# Pin
DeepakMega4-Oct-09 23:33
DeepakMega4-Oct-09 23:33 
Questionform closing reason problem Pin
Ajithevn4-Oct-09 21:30
Ajithevn4-Oct-09 21:30 
AnswerRe: form closing reason problem Pin
Christian Graus4-Oct-09 21:32
protectorChristian Graus4-Oct-09 21:32 
GeneralRe: form closing reason problem Pin
Ajithevn5-Oct-09 0:30
Ajithevn5-Oct-09 0:30 
Answer[Message Deleted] Pin
Blikkies4-Oct-09 21:50
professionalBlikkies4-Oct-09 21:50 
GeneralRe: form closing reason problem Pin
Ajithevn5-Oct-09 0:32
Ajithevn5-Oct-09 0:32 
GeneralRe: form closing reason problem Pin
Blikkies5-Oct-09 1:11
professionalBlikkies5-Oct-09 1:11 
AnswerRe: form closing reason problem Pin
Mycroft Holmes4-Oct-09 22:33
professionalMycroft Holmes4-Oct-09 22:33 
GeneralRe: form closing reason problem Pin
Ajithevn5-Oct-09 0:27
Ajithevn5-Oct-09 0:27 
Questionwhat is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:06
amaankhan4-Oct-09 21:06 
AnswerRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:08
protectorChristian Graus4-Oct-09 21:08 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:13
amaankhan4-Oct-09 21:13 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:23
protectorChristian Graus4-Oct-09 21:23 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:32
amaankhan4-Oct-09 21:32 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:37
amaankhan4-Oct-09 21:37 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:37
protectorChristian Graus4-Oct-09 21:37 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:42
amaankhan4-Oct-09 21:42 

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.