Ive already had a lot of help on this (thanks especially to Dave Evans) but im getting myself confused, so i thought id re-state my problem for clarity. Apologies for any repitition and many thanks...
Type: Posts; User: Amoreldor
Ive already had a lot of help on this (thanks especially to Dave Evans) but im getting myself confused, so i thought id re-state my problem for clarity. Apologies for any repitition and many thanks...
Sorry, i want to saddle the gaussian distribution about the f(x)=o vertical axis, limited between x=+1 and x=-1 (on a conventional x,y plot.)
Then i want to generate a random number that will lie...
I want gasdev to call on the ran2 random number between 0and1 so that the gaussian number i can get out will be more "reliable" in its randomness.
In the problem im trying to model, we have to...
Thanks very much, to be brutally honest i dont know why i did that, trying to copy the one you guys's helped me to get running. Thanks for the help, ill give it a good go!
Apologies for my random...
Ok... again many thanks for all the help i have previously received, am now struggling with a new problem...
I want to use one of the numbers generated from the ran2 program to initialize a new...
Am new to the boards, but he's already helped me out today- so would also like to say happy birthday!
If you dont want to go "serious" with something like ROme, then my favourite RTS of the moment is W40k: Dawn of War. If you havent played it theres a good little demo floating around at...
Awsome, is all working perfectly. Am very grateful, many many thanks.
Amoreldor
lol, thanks again- very helpful. Sorry i keep jumping the gun. Really am bad at this! Something tells me i need more coffee... (integer values)
Sorry - i didnt refresh fast enough to see the second reply before responding!
Brilliant, thanks a lot! Sorry was such a silly mistake!
The author of the book actually says "within the limits of its floating-point precision, ran2 provides perfect random numbers; a practical...
hey guys thanks for reading this.. i know that its a simple error on my part as i dont really know what im doing..
Am using this "Numerical recipes in C" to help me with some complex maths, but my...