math(3caca)

math3caca

Detailed Description

These functions provide a few useful math-related routines.

Function Documentation

int caca_rand (int min, int max)

Parameters:

min The lower bound of the integer range.
max The upper bound of the integer range.

Returns:

A random integer comprised between min and max, inclusive.

unsigned int caca_sqrt (unsigned int a)

Parameters:

a A positive integer.

Returns:

The approximate square root of a.

From libcaca-dev 0.9-4 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.