t2:rand

rand


rand - Generate a random number

Description


fix32 rand();

Generate a random decimal number between 0.0 and 1.0.

Return Value


Returns a pseudo-random fix32 between 0.0 and 1.0.

Examples


Example #1 abs() example

init {
    printf("%.6f", rand()); // Random number between 0.0 and 1.0
}
t2/rand.txt · Last modified: 2016/11/12 15:29 by J2Kbr