1 #include "stdafx.h"
2 
3 double drand48(void)
4 {
5 	unsigned int x = (rand() << 16) | rand();
6 	return ((double)x / (double)0xffffffff);
7 }


syntax highlighted by Code2HTML, v. 0.9.1