This is my code
#include <stdio.h>
#include <stdlib.h>
main()
{
int r = rand() % 20;
printf("%d", r);
}
I want to get a random number 19 and below, but it just gives me 1
every time I compile and run it. Can someone show me what I am doing wrong?