Click here to Skip to main content
15,908,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A Question about Buttons Pin
BobInNJ14-Feb-09 6:49
BobInNJ14-Feb-09 6:49 
GeneralRe: A Question about Buttons Pin
Arman S.14-Feb-09 7:09
Arman S.14-Feb-09 7:09 
GeneralRe: A Question about Buttons Pin
BobInNJ14-Feb-09 11:52
BobInNJ14-Feb-09 11:52 
QuestionAbout CComboBox::GetLBText() Pin
Chrissie.ja12-Feb-09 13:58
Chrissie.ja12-Feb-09 13:58 
AnswerRe: About CComboBox::GetLBText() Pin
«_Superman_»12-Feb-09 17:48
professional«_Superman_»12-Feb-09 17:48 
QuestionHow to get this to work correctly :( Pin
edgar 8812-Feb-09 13:52
edgar 8812-Feb-09 13:52 
Questionrand() is not random Pin
includeh1012-Feb-09 13:37
includeh1012-Feb-09 13:37 
AnswerRe: rand() is not random Pin
BobInNJ12-Feb-09 14:50
BobInNJ12-Feb-09 14:50 
I am not sure what you mean by submit. The function srand is to seed the random number generator. I have run some tests on the rand() function that comes with the Microsoft C/C++ compiler. I find it to be an excellent random number generator. Is it a perfect one? No. The function rand() is suppose to produce a random number whose value is independent of the last value it returned.

Are you saying that for two different seeds you are getting the same sequence of random numbers? If this is true, then I think there is a problem.

I have a feeling that I did not help you. I also believe that if I understood your problem better, I could give you a better answer.


Bob
AnswerRe: rand() is not random Pin
«_Superman_»12-Feb-09 18:01
professional«_Superman_»12-Feb-09 18:01 
AnswerRe: rand() is not random Pin
Cedric Moonen12-Feb-09 20:23
Cedric Moonen12-Feb-09 20:23 
AnswerRe: rand() is not random Pin
Arman S.12-Feb-09 20:45
Arman S.12-Feb-09 20:45 
AnswerRe: rand() is not random Pin
Stuart Dootson12-Feb-09 22:02
professionalStuart Dootson12-Feb-09 22:02 
AnswerRe: rand() is not random Pin
David Crow13-Feb-09 3:30
David Crow13-Feb-09 3:30 
AnswerRe: rand() is not random Pin
Rajesh R Subramanian13-Feb-09 5:15
professionalRajesh R Subramanian13-Feb-09 5:15 
QuestionTrying to create a pair of check boxes Pin
BobInNJ12-Feb-09 11:33
BobInNJ12-Feb-09 11:33 
AnswerRe: Trying to create a pair of check boxes Pin
Code-o-mat12-Feb-09 11:40
Code-o-mat12-Feb-09 11:40 
AnswerRe: Trying to create a pair of check boxes Pin
Stuart Dootson12-Feb-09 11:43
professionalStuart Dootson12-Feb-09 11:43 
QuestionChanging menus in MDI ( MFC) Pin
Like2Byte12-Feb-09 10:02
Like2Byte12-Feb-09 10:02 
QuestionNeed help on MCI functions Pin
John50212-Feb-09 9:32
John50212-Feb-09 9:32 
QuestionImpersonation via network Pin
Green Fuze12-Feb-09 9:09
Green Fuze12-Feb-09 9:09 
QuestionReadFile/WriteFile returning ERROR_INVALID_FUNCTION on USB device on Vista Pin
Keith Worden12-Feb-09 5:12
Keith Worden12-Feb-09 5:12 
AnswerRe: ReadFile/WriteFile returning ERROR_INVALID_FUNCTION on USB device on Vista Pin
Stuart Dootson12-Feb-09 6:59
professionalStuart Dootson12-Feb-09 6:59 
GeneralRe: ReadFile/WriteFile returning ERROR_INVALID_FUNCTION on USB device on Vista Pin
Keith Worden13-Feb-09 0:06
Keith Worden13-Feb-09 0:06 
GeneralRe: ReadFile/WriteFile returning ERROR_INVALID_FUNCTION on USB device on Vista Pin
Stuart Dootson13-Feb-09 0:17
professionalStuart Dootson13-Feb-09 0:17 
QuestionTCHAR as Key in a map. Pin
Comp_Users12-Feb-09 1:28
Comp_Users12-Feb-09 1:28 

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.