~ubuntu-branches/ubuntu/trusty/abs-guide/trusty-proposed

« back to all changes in this revision

Viewing changes to cards.sh

  • Committer: Package Import Robot
  • Author(s): Sandro Tosi
  • Date: 2014-01-01 12:26:22 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20140101122622-n04ky7hk3mt1x13l
Tags: 6.6-1
* New upstream release; thanks to Sébastien Villemot for the report;
  Closes: #733155
* debian/control
  - bump Standards-Version to 3.9.5 (no changes needed)
  - use packaging repository canonical URLs

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
seed=`eval date +%s`
77
77
let "seed %= 32766"
78
78
RANDOM=$seed
79
 
#  What are some other methods
80
 
#+ of seeding the random number generator?
81
 
}
 
79
} # Consider other methods of seeding the random number generator.
82
80
 
83
81
deal_cards ()
84
82
{
95
93
    parse_card $t
96
94
 
97
95
    u=$cards_picked+1
98
 
    # Change back to 1-based indexing (temporarily). Why?
 
96
    # Change back to 1-based indexing, temporarily. Why?
99
97
    let "u %= $CARDS_IN_SUIT"
100
98
    if [ "$u" -eq 0 ]   # Nested if/then condition test.
101
99
    then