Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Vista JunctionPoint/ReparsePoint. Pin
Pete O'Hanlon22-Jan-08 3:40
mvePete O'Hanlon22-Jan-08 3:40 
GeneralRe: Vista JunctionPoint/ReparsePoint. Pin
Geron22-Jan-08 4:09
Geron22-Jan-08 4:09 
GeneralRe: Vista JunctionPoint/ReparsePoint. Pin
Geron24-Jan-08 23:17
Geron24-Jan-08 23:17 
QuestionCSV Import - Without Header Pin
Nisha_Aadhi22-Jan-08 0:28
Nisha_Aadhi22-Jan-08 0:28 
GeneralRe: CSV Import - Without Header Pin
Dieter Deysel22-Jan-08 1:17
Dieter Deysel22-Jan-08 1:17 
GeneralRe: CSV Import - Without Header Pin
Nisha_Aadhi22-Jan-08 2:58
Nisha_Aadhi22-Jan-08 2:58 
GeneralRandom Number genration in c# Pin
Suj_7822-Jan-08 0:17
Suj_7822-Jan-08 0:17 
GeneralRe: Random Number genration in c# Pin
Colin Angus Mackay22-Jan-08 0:27
Colin Angus Mackay22-Jan-08 0:27 
Suj_78 wrote:
RandomNumber = new Random();


Put that line outside the loop.

When you create a new Random number generator it is seeded against the current time. If the loop is very short there is no time for the clock to update, so it gets reseeded against the same time as the last iteration, therefore producing the same number again.

Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* The Value of Smaller Methods
* Creating Many-to-Many joins

My website | blog

GeneralRe: Random Number genration in c# Pin
Suj_7822-Jan-08 0:35
Suj_7822-Jan-08 0:35 
QuestionTool for designing applications Pin
Phrone21-Jan-08 23:55
Phrone21-Jan-08 23:55 
GeneralRe: Tool for designing applications Pin
led mike22-Jan-08 4:44
led mike22-Jan-08 4:44 
GeneralRe: Tool for designing applications Pin
Thomas Stockwell23-Jan-08 8:16
professionalThomas Stockwell23-Jan-08 8:16 
QuestionControl in Designer or Runtime ? Pin
stancrm21-Jan-08 21:15
stancrm21-Jan-08 21:15 
AnswerRe: Control in Designer or Runtime ? Pin
Philipp Sumi21-Jan-08 21:34
Philipp Sumi21-Jan-08 21:34 
QuestionHow can I add datas in new line each time I enter values Pin
Anu Palavila21-Jan-08 20:26
Anu Palavila21-Jan-08 20:26 
AnswerRe: How can I add datas in new line each time I enter values Pin
Pete O'Hanlon21-Jan-08 21:59
mvePete O'Hanlon21-Jan-08 21:59 
GeneralPassing datas from one form to anotther in C#.net Pin
Anu Palavila21-Jan-08 20:23
Anu Palavila21-Jan-08 20:23 
GeneralRe: Passing datas from one form to anotther in C#.net Pin
sindhutiwari21-Jan-08 20:48
sindhutiwari21-Jan-08 20:48 
GeneralRe: Passing datas from one form to anotther in C#.net Pin
Colin Angus Mackay22-Jan-08 0:28
Colin Angus Mackay22-Jan-08 0:28 
GeneralRe: Passing datas from one form to anotther in C#.net Pin
Colin Angus Mackay22-Jan-08 0:29
Colin Angus Mackay22-Jan-08 0:29 
GeneralRe: Passing datas from one form to anotther in C#.net Pin
Pete O'Hanlon22-Jan-08 1:49
mvePete O'Hanlon22-Jan-08 1:49 
GeneralRe: Passing datas from one form to anotther in C#.net Pin
Elayaraja Sambasivam22-Jan-08 4:10
Elayaraja Sambasivam22-Jan-08 4:10 
Generalpoint after rotate Pin
Try21-Jan-08 20:08
Try21-Jan-08 20:08 
GeneralRe: point after rotate Pin
CKnig21-Jan-08 20:24
CKnig21-Jan-08 20:24 
QuestionData transfer problem usinging ip address and port number. Pin
manoj_kumar251121-Jan-08 19:58
manoj_kumar251121-Jan-08 19:58 

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.