Click here to Skip to main content
15,917,642 members
Home / Discussions / C#
   

C#

 
QuestionSessionTimeOut Problem Pin
shaina22318-Mar-10 2:22
shaina22318-Mar-10 2:22 
AnswerRe: SessionTimeOut Problem Pin
Sandeep Mewara8-Mar-10 9:57
mveSandeep Mewara8-Mar-10 9:57 
QuestionReading and Writing Reg_Binary Pin
sriharichowdary8-Mar-10 2:10
sriharichowdary8-Mar-10 2:10 
AnswerRe: Reading and Writing Reg_Binary Pin
Covean8-Mar-10 2:34
Covean8-Mar-10 2:34 
AnswerRe: Reading and Writing Reg_Binary Pin
The Man from U.N.C.L.E.8-Mar-10 2:39
The Man from U.N.C.L.E.8-Mar-10 2:39 
QuestionProblem with Random class in C# Pin
yadlaprasad8-Mar-10 1:36
yadlaprasad8-Mar-10 1:36 
AnswerRe: Problem with Random class in C# Pin
Covean8-Mar-10 1:45
Covean8-Mar-10 1:45 
AnswerRe: Problem with Random class in C# Pin
Phil J Pearson8-Mar-10 1:47
Phil J Pearson8-Mar-10 1:47 
Don't instantiate a new Random every time. Treat random as a singleton.
Random will (by design) give you the same sequence of numbers every time unless you start with a different seed. Right now you are getting the first number of the sequence every time.
Phil



The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

AnswerRe: Problem with Random class in C# Pin
PIEBALDconsult8-Mar-10 3:48
mvePIEBALDconsult8-Mar-10 3:48 
AnswerRe: Problem with Random class in C# Pin
Kythen8-Mar-10 9:45
Kythen8-Mar-10 9:45 
Questionhow to browse Pin
Guru Brahmam Chowdary8-Mar-10 0:58
Guru Brahmam Chowdary8-Mar-10 0:58 
QuestionRe: how to browse Pin
Calla8-Mar-10 1:08
Calla8-Mar-10 1:08 
AnswerRe: how to browse Pin
Guru Brahmam Chowdary8-Mar-10 1:52
Guru Brahmam Chowdary8-Mar-10 1:52 
GeneralRe: how to browse Pin
OriginalGriff8-Mar-10 2:02
mveOriginalGriff8-Mar-10 2:02 
GeneralRe: how to browse Pin
Guru Brahmam Chowdary8-Mar-10 2:33
Guru Brahmam Chowdary8-Mar-10 2:33 
Questionhow i can capture that print command is generating Pin
22087-Mar-10 23:52
22087-Mar-10 23:52 
AnswerMessage Closed Pin
8-Mar-10 0:19
stancrm8-Mar-10 0:19 
GeneralRe: how i can capture that print command is generating Pin
22088-Mar-10 0:28
22088-Mar-10 0:28 
GeneralRe: how i can capture that print command is generating Pin
Richard MacCutchan8-Mar-10 1:12
mveRichard MacCutchan8-Mar-10 1:12 
Questionhow to detect mouse over the picturebox? Pin
Tridip Bhattacharjee7-Mar-10 23:44
professionalTridip Bhattacharjee7-Mar-10 23:44 
AnswerRe: how to detect mouse over the picturebox? Pin
Luc Pattyn8-Mar-10 1:17
sitebuilderLuc Pattyn8-Mar-10 1:17 
AnswerRe: how to detect mouse over the picturebox? Pin
OriginalGriff8-Mar-10 1:29
mveOriginalGriff8-Mar-10 1:29 
AnswerRe: how to detect mouse over the picturebox? Pin
johannesnestler8-Mar-10 3:33
johannesnestler8-Mar-10 3:33 
QuestionCheck if expath exist Pin
ONeil Tomlinson7-Mar-10 23:12
ONeil Tomlinson7-Mar-10 23:12 
AnswerRe: Check if expath exist Pin
Mirko19807-Mar-10 23:42
Mirko19807-Mar-10 23: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.