Terminal Benchmark: Random Alphanumeric String Printer
In this task, implement a small utility that prints a single line to stdout consisting of exactly 10 characters drawn from the set [A-Za-z0-9]. The characters must be randomly selected so consecutive runs produce different outputs. The script should be portable to typical Unix-like environments and require no external dependencies.
Steps
Create a script at /app/print_random.sh that prints the string to stdout and exits. The script must be executable.
Ensure the output contains exactly 10 characters and a trailing newline.
Optional: provide a Python version at /app/print_random.py that performs the same task.
How to run:
bash /app/print_random.sh
python3 /app/print_random.py
Deliverables
/app/print_random.sh (executable)
optional: /app/print_random.py
Example output
G7tQ4b9Kx1
Notes
Output must contain only alphanumeric characters; no spaces or extra text.