#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
#include<Windows.h>
int main()
{
// Random trong đoạn [a, b]
int a = 1, b = 20;
srand(time(0)); // Reset lại thời gian
for (int i = 1; i <= 12; i++)
{
Sleep(1000); // Dừng 1 giây
int x = a + rand() % (b - a + 1);
printf("\nx = %d", x);
}
_getch();
return 0;
}