added some more random number utilities

This commit is contained in:
Bob Polis
2020-11-16 10:39:58 +01:00
parent c3935312c4
commit 2e0d3a79f0
2 changed files with 27 additions and 14 deletions

View File

@ -31,9 +31,11 @@ class ScreensaverPlugin {
void make_black();
cairo_rectangle_t random_rect();
cairo_rectangle_t random_rect_in_rect(const cairo_rectangle_t& rect);
double random_x();
double random_y();
double random01();
double random_between(double v1, double v2);
};
#endif // _ScreensaverPlugin_H_