#include <stdio.h> #include <time.h> int main(void) { int numbers[52]; int i, j, temp; // putting numbers from 1 to 52 into the 'numbers' array for(i=0; i<52; i++) numbers[i] = i + 1; // shuffling using Fisher-Yates shuffle algorithm for(i=51; i>=1; i--) { temp = numbers[i]; numbers[i] = numbers[j]; numbers[j] = temp; } // printing the array for(i=0; i<52; i++) return 0; }
Standard input is empty
37, 50, 25, 5, 16, 14, 47, 22, 8, 51, 33, 9, 10, 49, 41, 2, 45, 28, 40, 26, 23, 36, 35, 24, 46, 4, 38, 48, 20, 11, 52, 39, 13, 29, 15, 31, 1, 34, 18, 43, 6, 44, 7, 3, 12, 21, 27, 17, 30, 42, 32, 19,