Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
GeneralRe: add user control in datagridview in c# Pin
monuSaini13-Jan-09 0:51
monuSaini13-Jan-09 0:51 
GeneralRe: add user control in datagridview in c# Pin
Vivek Bhatnagar13-Jan-09 1:06
Vivek Bhatnagar13-Jan-09 1:06 
QuestionNeed Library for resume parsing [modified] Pin
Sudhir Mangla13-Jan-09 0:06
professionalSudhir Mangla13-Jan-09 0:06 
AnswerRe: Need Library for resume parsing Pin
lawrenceinba13-Jan-09 0:24
lawrenceinba13-Jan-09 0:24 
GeneralRe: Need Library for resume parsing Pin
Sudhir Mangla13-Jan-09 2:03
professionalSudhir Mangla13-Jan-09 2:03 
GeneralRe: Need Library for resume parsing Pin
lawrenceinba13-Jan-09 2:49
lawrenceinba13-Jan-09 2:49 
AnswerRe: Need Library for resume parsing Pin
Henry Minute13-Jan-09 6:08
Henry Minute13-Jan-09 6:08 
AnswerRe: Need Library for resume parsing Pin
Ben Fair13-Jan-09 6:29
Ben Fair13-Jan-09 6:29 
GeneralRe: Need Library for resume parsing Pin
Sudhir Mangla14-Jan-09 0:11
professionalSudhir Mangla14-Jan-09 0:11 
Questionescape sequences in C# Pin
lawrenceinba13-Jan-09 0:04
lawrenceinba13-Jan-09 0:04 
AnswerRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:10
SeMartens13-Jan-09 0:10 
GeneralRe: escape sequences in C# Pin
lawrenceinba13-Jan-09 0:15
lawrenceinba13-Jan-09 0:15 
GeneralRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:17
SeMartens13-Jan-09 0:17 
GeneralRe: escape sequences in C# Pin
lawrenceinba13-Jan-09 0:20
lawrenceinba13-Jan-09 0:20 
GeneralRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:26
SeMartens13-Jan-09 0:26 
GeneralRe: escape sequences in C# Pin
lawrenceinba13-Jan-09 0:51
lawrenceinba13-Jan-09 0:51 
GeneralRe: escape sequences in C# Pin
Guffa13-Jan-09 0:53
Guffa13-Jan-09 0:53 
GeneralRe: escape sequences in C# Pin
S. Senthil Kumar13-Jan-09 0:56
S. Senthil Kumar13-Jan-09 0:56 
GeneralThreads and random() Pin
gudrunkr13-Jan-09 0:01
gudrunkr13-Jan-09 0:01 
GeneralRe: Threads and random() Pin
SeMartens13-Jan-09 0:06
SeMartens13-Jan-09 0:06 
GeneralRe: Threads and random() Pin
gudrunkr13-Jan-09 0:13
gudrunkr13-Jan-09 0:13 
GeneralRe: Threads and random() Pin
SeMartens13-Jan-09 0:15
SeMartens13-Jan-09 0:15 
GeneralRe: Threads and random() Pin
S. Senthil Kumar13-Jan-09 1:04
S. Senthil Kumar13-Jan-09 1:04 
Do you know why it didn't work first?

The Random class uses the current time as the "seed" for generating random numbers. Because you created two instances, one for each thread, and the two threads started running in parallel right away, both of them got the same seed and therefore generated the same sequence of random numbers.

BTW, the MSDN doc says that instance methods on the Random class are not thread safe - you might have to look out for that.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Home Page |My Blog | My Articles | My Flickr | WinMacro

QuestionQuestion on SqlDataReader[string name] Pin
Dewald12-Jan-09 23:08
Dewald12-Jan-09 23:08 
AnswerRe: Question on SqlDataReader[string name] Pin
SeMartens12-Jan-09 23:14
SeMartens12-Jan-09 23:14 

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.