// CSE 143 // Homework 5 // http://www.cs.washington.edu/education/courses/143/00su/homework/ // 30 Jul 2000, Ken Yasuhara #ifndef _UTIL_H_ #define _UTIL_H_ const double PI = 3.14159265; // returns a random number between 0.0 and 1.0 double randFraction(); // returns a random angle in radians between 0 and 2 * PI double randAngle(); // sets x, y to randomly chosen coordinates in circle with given // radius at given center void pickRandPositionInCircle(double &x, double &y, double centerX, double centerY, double radius); #endif // _UTIL_H_