Using a bash script, I want to choose a random number from such a list: [0, X, 2X, 3X, 4X, ..., Y] where Y=k*X and k is an integer. X and Y are just some input numbers by the user. To clarify the question, here is an example:
X=2
#Y=10*X
Y=20
# The <desired_command> to choose a random number from [0, 2, 4, 6, 8, ..., 20] --> sample output=12
desired_command
How can I do this?