Thanks for the code it's now generating time dependant random numbers but I want to limit it betbeen -0.5 and 2.5 what modifications must be made to the code to limit it.

Code:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{

    int i,a;

    /* Set evil seed (initial seed) */
    srand( (unsigned)time( NULL ) );

    for (i = 0; i < 12; i++) 
    {
        a=rand()%100;	
        printf("%d\n",a);
    }
   
    return 0;
}