ID:2222500
 
Not a bug
BYOND Version:Latest Beta
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 51.0
Applies to:Dream Maker
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
I should be getting a missing expression error when compiling this snippet.
Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
M.Move(locate(rand(Spawn.size_x),rand(Spawn.size_y),Spawn.z_level))//Incorrect
M.Move(locate(rand(1,Spawn.size_x),rand(1,Spawn.size_y),Spawn.z_level))//Correct


Expected Results:
An error saying missing expression.
Actual Results:
Compiles as normal. No error.
Does the problem occur:
Every time? Or how often?
every time
In other games?
N/A
In other user accounts?
N/A
On other computers?
Yes
When does the problem NOT occur?
Never?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
No.
Workarounds:
Doesn't really need a work around just requires users to have to make sure and define both args.
Lummox JR resolved issue (Not a bug)
This is not a bug, this is documented behavior where if you only provide one parameter, that is the upper limit and the lower limit is 0.