# Example from page 70 # The following prints a random card from a card deck. integer i=0 typeset -u card # Upper case. for suit in clubs diamonds hearts spades do for n in ace 2 3 4 5 6 7 8 9 10 jack queen king do card[i]="$n of $suit" i=i+1 # The let command is not required with # integer variables. done done print -- ${card[RANDOM%52]}