Random function

Jon Marc Zdricolei opticom at picknowl.com.au
Sat Sep 29 01:56:10 CEST 2001


Hi,
The following question concerns a friend of mine. As I am not at all familiar with GPC it might seem silly.
My friend tries to use the random function like this: " rand := random/exp(31*ln(2)); "
When she compiles the program she gets the error " In function 'Rand' : undefined reference to 'Random' ".
The question is: is the syntax correct or does GPC support random function? Her program runs correctly on UNIX, however UNIX is not always available, hence she needs to use Linux 7. Unfortunately I don't know what version of GPC is installed.
Could you please help?
Regards
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20010929/8d61004d/attachment.htm>


More information about the Gpc mailing list