Click here to Skip to main content
15,888,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 11:47
mveCPallini26-Sep-12 11:47 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:39
Smart Arab26-Sep-12 22:39 
GeneralRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 22:45
mveCPallini26-Sep-12 22:45 
QuestionHow to make slider movement smooth in MFC.? Pin
mbatra3125-Sep-12 20:39
mbatra3125-Sep-12 20:39 
QuestionRandom Number Pin
pix_programmer25-Sep-12 20:05
pix_programmer25-Sep-12 20:05 
AnswerRe: Random Number Pin
Ingo25-Sep-12 20:38
Ingo25-Sep-12 20:38 
AnswerRe: Random Number Pin
CPallini25-Sep-12 22:25
mveCPallini25-Sep-12 22:25 
AnswerRe: Random Number Pin
Ingo25-Sep-12 23:55
Ingo25-Sep-12 23:55 
CPallini wrote:
Notice though that this modulo operation does not generate a truly uniformly distributed random number in the span (since in most cases lower numbers are slightly more likely), but it is generally a good approximation for short spans.

That's wrong.
I startet a small programm generating one billion random number for each of the two solutions repeatly.
The are no difference and the reason is obvious.

Of course smaller numbers are more likely, but it doesn't matter how big a number is when you use modulo as it depends on divisibility. And there is no difference for small or large numbers.
------------------------------
Author of Primary ROleplaying SysTem

How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.

GeneralRe: Random Number Pin
CPallini26-Sep-12 0:28
mveCPallini26-Sep-12 0:28 
GeneralRe: Random Number Pin
Ingo26-Sep-12 0:35
Ingo26-Sep-12 0:35 
AnswerRe: Random Number Pin
_AnsHUMAN_ 26-Sep-12 0:12
_AnsHUMAN_ 26-Sep-12 0:12 
AnswerRe: Random Number Pin
Software_Developer26-Sep-12 8:00
Software_Developer26-Sep-12 8:00 
AnswerOT Just curious... Pin
jeron126-Sep-12 8:21
jeron126-Sep-12 8:21 
QuestionRe: OT Just curious... Pin
David Crow26-Sep-12 10:52
David Crow26-Sep-12 10:52 
AnswerRe: OT Just curious... Pin
CPallini26-Sep-12 10:55
mveCPallini26-Sep-12 10:55 
GeneralRe: OT Just curious... Pin
jeron126-Sep-12 11:02
jeron126-Sep-12 11:02 
GeneralRe: OT Just curious... Pin
CPallini26-Sep-12 11:14
mveCPallini26-Sep-12 11:14 
GeneralRe: OT Just curious... Pin
jeron126-Sep-12 12:15
jeron126-Sep-12 12:15 
Questionproblem deploying application Pin
appollosputnik25-Sep-12 8:40
appollosputnik25-Sep-12 8:40 
AnswerRe: problem deploying application Pin
Chris Meech25-Sep-12 9:00
Chris Meech25-Sep-12 9:00 
GeneralRe: problem deploying application Pin
appollosputnik25-Sep-12 21:28
appollosputnik25-Sep-12 21:28 
GeneralRe: problem deploying application Pin
Richard MacCutchan25-Sep-12 22:00
mveRichard MacCutchan25-Sep-12 22:00 
GeneralRe: problem deploying application Pin
appollosputnik26-Sep-12 21:02
appollosputnik26-Sep-12 21:02 
GeneralRe: problem deploying application Pin
Richard MacCutchan26-Sep-12 21:29
mveRichard MacCutchan26-Sep-12 21:29 
Questionexceptions always SIGABRT in linux shared object Pin
MichaelRoop25-Sep-12 1:28
MichaelRoop25-Sep-12 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.