oglc/src/random.c

12 lines
133 B
C

#include "random.h"
void randomInit()
{
srand(time(NULL));
}
float randomFloat()
{
return (float)rand()/(float)RAND_MAX;
}