Functions | |
| int | caca_rand (int, int) |
| Generate a random integer within a range. | |
| unsigned int | caca_sqrt (unsigned int) |
| Approximate a square root, using Newton's method to avoid costly floating point calculations. | |
| int caca_rand | ( | int | min, | |
| int | max | |||
| ) |
| min | The lower bound of the integer range. | |
| max | The upper bound of the integer range. |
min and max, inclusive. | unsigned int caca_sqrt | ( | unsigned int | a | ) |
| a | A positive integer. |
a.