On 23-Oct-2017 23:19, Thomas Holder wrote:
drand48() returns a float in [0,1) whereas rand() returns an integer
in [0,MAX_RAND].

The usual trick (this comes up frequently on mingw) is to replace drand48 with

(rand() / (RAND_MAX + 1.0))


Regards,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to