Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: copy constructor / assignment operator Pin
Prakash Nadar31-Mar-04 5:04
Prakash Nadar31-Mar-04 5:04 
GeneralRe: copy constructor / assignment operator Pin
David Crow31-Mar-04 2:14
David Crow31-Mar-04 2:14 
Generalrandom number Pin
shiva shankar30-Mar-04 22:21
shiva shankar30-Mar-04 22:21 
GeneralRe: random number Pin
SJolly30-Mar-04 23:11
SJolly30-Mar-04 23:11 
GeneralRe: random number Pin
shiva shankar30-Mar-04 23:28
shiva shankar30-Mar-04 23:28 
GeneralRe: random number Pin
Antony M Kancidrowski30-Mar-04 23:49
Antony M Kancidrowski30-Mar-04 23:49 
GeneralRe: random number Pin
SJolly30-Mar-04 23:50
SJolly30-Mar-04 23:50 
GeneralRe: random number Pin
Tim Smith31-Mar-04 3:53
Tim Smith31-Mar-04 3:53 
Seeding the random number generator each time is a VERY BAD IDEA. For example, if you can generate 10,000 random numbers in a second, you will get the same random number each time since time only has a resolution of a second.

Also, many random number generators should be initialized with a large prime number. By not doing that, it can take a few interation before the random numbers start getting "good". Reseeding the random number generator constantly places it back in the initial condition of generating a small series of bad values.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralRe: random number Pin
SJolly31-Mar-04 4:53
SJolly31-Mar-04 4:53 
GeneralRe: random number Pin
David Crow31-Mar-04 2:21
David Crow31-Mar-04 2:21 
GeneralRe: random number Pin
Paul Ranson31-Mar-04 2:20
Paul Ranson31-Mar-04 2:20 
GeneralRe: random number Pin
Tim Smith31-Mar-04 3:57
Tim Smith31-Mar-04 3:57 
GeneralRe: random number Pin
Paul Ranson31-Mar-04 4:20
Paul Ranson31-Mar-04 4:20 
Generalmpeg streamer Pin
Florin Ochiana30-Mar-04 22:10
Florin Ochiana30-Mar-04 22:10 
GeneralDirectInput Gamepad axes name localization.... Pin
haust30-Mar-04 21:59
haust30-Mar-04 21:59 
Generalabout socket Pin
Member 98096830-Mar-04 21:32
Member 98096830-Mar-04 21:32 
GeneralRe: about socket Pin
Antony M Kancidrowski31-Mar-04 0:24
Antony M Kancidrowski31-Mar-04 0:24 
GeneralForm view problem Pin
Raghunandan S30-Mar-04 21:19
Raghunandan S30-Mar-04 21:19 
GeneralRe: Form view problem Pin
Antti Keskinen30-Mar-04 21:34
Antti Keskinen30-Mar-04 21:34 
QuestionHow to replicate a directory? Pin
RickardIsraelsson30-Mar-04 21:07
RickardIsraelsson30-Mar-04 21:07 
AnswerRe: How to replicate a directory? Pin
David Crow31-Mar-04 2:25
David Crow31-Mar-04 2:25 
GeneralCTreeView Pin
fbachan30-Mar-04 21:03
fbachan30-Mar-04 21:03 
GeneralRe: CTreeView Pin
ohadp30-Mar-04 21:36
ohadp30-Mar-04 21:36 
GeneralCopy of Array of Bytes Pin
JeabJB30-Mar-04 21:03
JeabJB30-Mar-04 21:03 
GeneralRe: Copy of Array of Bytes Pin
ohadp30-Mar-04 21:34
ohadp30-Mar-04 21:34 

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.