SC_Rand

Usage

int SC_Rand( int value)


Summary

Generates a random number.


More Information

The random value is returned by this function.

value = the higest value of the result -1 (range is 0 to result-1).


Example

int r;

// get a random number between 0 and 4
r = SC_Rand( 4);

// get a random number between 1 and 5
r = SC_Rand( 4) + 1;


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator