Added random math function I found in my archive.

Signed-off-by: Tom Green <kingofcuddles@gmail.com>