Allowed Randomize to have any numeric expression for a seed.
authorMichael Welch <michaelgwelch@gmail.com>
Fri, 29 Dec 2006 02:44:12 +0000 (02:44 +0000)
committerMichael Welch <michaelgwelch@gmail.com>
Fri, 29 Dec 2006 02:44:12 +0000 (02:44 +0000)
commit545bdc2033edbedd12e56e7d93e1c56a62951fc4
treea0c82104e34857937ac54d2f943cfd083551bd60
parent15684a0e4c60095b023ac7f97ea30f4a21073db2
Allowed Randomize to have any numeric expression for a seed.

Parser.cs:
Fixed parsing of Randomize to allow any numeric expression.

Randomize.cs:
Modified class to take an expression rather than an int for its seed. Modifed Emit to match this.

secrenum.mbas:
Modified program to show that even a relational expression can be used as a seed.

BuiltIns.cs:
Modified RandomizeWithSeed to take a double instead of an int.
TiBasicRuntime/BuiltIns.cs
mbasic/Parser.cs
mbasic/SyntaxTree/Randomize.cs
samples/secretnum.mbas