#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int a; srand(time(NULL)); a = rand() % 3; printf("%d\n", a); printf("%d\n", rand() %3+1); }
To embed this project on your website, copy the following code and paste it into your website's HTML: