#include<stdlib.h>
#include<stdio.h>
main()
{
randomize();
float u,d; int t;
d =rand();
u=(float)d/RAND_MAX;
printf(" \n\n random number is %f ",u);
}
I coded this programme to generate a random number. But pelles c shows unresolved external symbol "randomize. So how can I generate random numbers???? :( :( :( :( :(
randomize is not supported by Pelles C.
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
main()
{
// randomize();
srand(time(NULL));
float u,d; int t;
d =rand();
u=(float)d/RAND_MAX;
printf(" \n\n random number is %f ",u);
}