Files
cybershot-PSVita/src/toolbox/toolbox.c
SemvdH 6870625fd6 [ADD] main character,
smoke particle when shooting,
fire effect to player
2021-06-21 21:24:57 +02:00

9 lines
195 B
C

#include "toolbox.h"
float toolbox_random_float(float a, float b)
{
float random = ((float)rand()) / (float)RAND_MAX;
float diff = b - a;
float r = random * diff;
return a + r;
}