#include "rand.h" #include double rand_Double01() { // Very bad implementation. return ((double)rand()) / (double)RAND_MAX; }