diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-04 01:41:26 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-04 01:41:26 +0800 |
commit | 920cb52f211a03479556866c712298141d368c50 (patch) | |
tree | 968cf0db6a62db237b6d928c42e40631a231b792 /mbbsd/othello.c | |
parent | 87fb00ac1f12f18d1176a4dc1988c8b86a7ef63c (diff) | |
download | pttbbs-920cb52f211a03479556866c712298141d368c50.tar pttbbs-920cb52f211a03479556866c712298141d368c50.tar.gz pttbbs-920cb52f211a03479556866c712298141d368c50.tar.bz2 pttbbs-920cb52f211a03479556866c712298141d368c50.tar.lz pttbbs-920cb52f211a03479556866c712298141d368c50.tar.xz pttbbs-920cb52f211a03479556866c712298141d368c50.tar.zst pttbbs-920cb52f211a03479556866c712298141d368c50.zip |
replace rand() with random() for better randomness
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2460 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/othello.c')
-rw-r--r-- | mbbsd/othello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/othello.c b/mbbsd/othello.c index 7f4b77b2..3392ca02 100644 --- a/mbbsd/othello.c +++ b/mbbsd/othello.c @@ -533,7 +533,7 @@ othello_main() think = choose(); showtitle("黑白棋", BBSName); printboard(); - which_table = rand() % NR_TABLE; + which_table = random() % NR_TABLE; while (true) { move(STARTX - 1, 30); outs("輪到你下了..."); |