when is an integer not an integer?
John Vokey
vokey at uleth.ca
Wed Jul 30 01:39:15 EDT 2008
The statement: set the randomseed to x is not consistent. In both the
Rev and MC documentation, x must be an integer. So, for example, set
the randomseed to the seconds works in the sense that a new and
different sequence is subsequently generated by random and any
statements. But set the randomseed to the ticks, or set the
randomseed to the milliseconds, both fail in that the same sequence is
generated every time. Yet, each of the ticks/the milliseconds/the
seconds is an integer return true. It appears clear that the
randomseed property requires small integers (on the order of the
seconds). But, it is still the case that even though the ticks is an
integer, is is too large of an integer for the randomseed property.
--
Please avoid sending me Word or PowerPoint attachments.
See <http://www.gnu.org/philosophy/no-word-attachments.html>
-Dr. John R. Vokey
More information about the use-livecode
mailing list