Hi everybody,
I have a problem with a fuction that should generate a random number between 0 and 1 but it only generates 0 everytime. i dont know what's wrong anymore, if someone could help me i would be greatful. Thanks. Here is the code:
float generare(void)
{
int r;
float U;
randomize();
r=random(100);
U=r/99;
return U;