randnum;unsigned long randi=1;const unsigned long randa=16807;unsigned long randm=pow(2,31)-1;const double pi=3.1415926;// random number creationvoid random_number(){ if ( randi == randm ) { randi=randm-1;