Simulated annealing: Difference between revisions

Line 94:
For your platform you might have to modify parts, such as the call to getentropy(3).
 
You can also easily change the kind of floating point used. I apologize for false precision in printouts using the default single precision floating point.
 
Some might notice the calculations of random integers are done in a way that may introduce a bias, which is miniscule as long as the integer is much smaller than 2 to the 31st power. I mention this now so no one will complain about it later.
 
<lang c>#include <math.h>
1,448

edits