Few questions

RANDOM is from 1 - 32767 how can i set it to be from 1 - 6
how can i give every user 100 points at start lets say a game.
within the script if i create users will it by default prevent creating users with same name twice.

I am a beginner in this field and want to do a little game and appreciate any help

Thanks in advance

Gina

Take mod of the value which you desire.

for values from 1..x

and if you want reduce the set to 1..y

take mod value for x and y.

Taking mod value with y for value x,

will bring down the set 1..x to 1..y

you can also use rand() from awk

#num=$(awk 'BEGIN{srand();print int(6*rand())+1}')
#echo $num