converting the mathgl headers I got: double mgl_rnd_ (...); but it should just be: double mgl_rnd(); hope this is not something simple I am doing wrong. sorry, but I have not time right now to find the original header and try to replicate it.