int numbers[] = { 3, 13, 22, 57, 417 }; int length = sizeof(numbers) / sizeof(int); int randomNumber = numbers[rand() % length];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)