How to randomly execute one command within specified list of command? Helpful for randomly choosing startup sound, wallpaper or executing commands.
In General, if I have commands for execution as follows then How do I get randomness:?
#!/bin/bash
<command_1>
<command_2>
<command_3>
.
.
.
<command_n>
Then I want to execute randomly only one command from above possibilities when script is run!
How to do that?