14 lines
258 B
C
14 lines
258 B
C
#include "math.h"
|
|
#include "include/object.h"
|
|
#include <cglm/cglm.h>
|
|
|
|
float frand48(void) {
|
|
float number = (float) rand() / (float) (RAND_MAX + 1.0);
|
|
float side = rand() % 2;
|
|
if (side == 0) {
|
|
number = -number;
|
|
}
|
|
|
|
return number;
|
|
}
|