#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>
const int SIZE = 10;
void initialize_char_array_with_random_characters(char arr[], int size) {
const std::string characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::srand(std::time(nullptr));
for (size_t i = 0; i < size; i++) {
arr[i] = characters[std::rand() % characters.length()];
}
}
int main() {
char arr[SIZE] = "";
int size = sizeof(arr) / sizeof(arr[0]);
initialize_char_array_with_random_characters(arr, size);
for (char ch : arr) {
std::cout << ch << " ";
}
}
/*
run:
n O I P c w 7 9 H N
*/