Board index » cppbuilder » RandG Gaussian random number generator

RandG Gaussian random number generator


2004-09-08 09:51:32 AM
cppbuilder65
The VCL Help lists some random number routines in the math unit,
including a Gaussian random number generator RandG(mean,sd)which I am
interested in.
However, calling RandG(..) from a program (with all the includes I can
think raises an "undefined function" compiler error.
I can find no mention of RandG in any file in my CPBuilder folders.
I am using C++Builder6 with (I think) all the upgrades.
Help!?
 
 

Re:RandG Gaussian random number generator

"Jack Alexander" < XXXX@XXXXX.COM >wrote in message
Quote
The VCL Help lists some random number routines in the math unit,
including a Gaussian random number generator RandG(mean,sd)which I
am interested in.

However, calling RandG(..) from a program (with all the includes I
can think raises an "undefined function" compiler error.

I can find no mention of RandG in any file in my CPBuilder folders.

I am using C++Builder6 with (I think) all the upgrades.
Help!?
Did you include <math.hpp>?
Regards,
Bruce
 

Re:RandG Gaussian random number generator

Dear Bruce
How embarrasing! I forgot about math.hpp and yes, my proggie now works.
Thanks very much.
Jack
Bruce Salzman wrote:
Quote
Did you include <math.hpp>?

Regards,
Bruce


 

{smallsort}