Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
int main() { // Initialize the randomizer with a fixed value srand(10000); // Generate 5 random numbers for (int i = 0; i < 5; i++) { int num = rand() % 100 + 1; printf("%d ", num); } printf("\n"); // Initialize the randomizer with the same value srand(10000); // Generate 5 random numbers for (int i = 0; i < 5; i++) { int num = rand() % 100 + 1; printf("%d ", num); } return 0; }
60 99 21 16 83
60 99 21 16 83