[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I made this mistake using uniformIntRand. Do you think it should warn m
From: |
Paul E Johnson |
Subject: |
I made this mistake using uniformIntRand. Do you think it should warn me? |
Date: |
Tue, 25 Jul 2000 10:55:54 -0500 |
I mistakenly wrote this:
return topAlts[[uniformIntRand getIntegerWithMin: 0 withMax: count-1]]
;
And in the rare occasion where count=0, then this generated behavior I
could not understand.
Do you think the uniformIntRand ought to kick you when you have a Max <
Min?
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- I made this mistake using uniformIntRand. Do you think it should warn me?,
Paul E Johnson <=