oglc/src/random.c

12 lines
133 B
C
Raw Normal View History

2021-08-08 17:47:25 +02:00
#include "random.h"
void randomInit()
{
srand(time(NULL));
}
float randomFloat()
{
return (float)rand()/(float)RAND_MAX;
}