সম্পাদনা
#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { srand(time(NULL)); printf("%d\n", rand()); printf("%d\n", 0 + rand() % (10 - 0 + 1)); printf("%d\n", 10 + rand() % (0 - 10 + 1)); return 0; }
পূর্বরূপ