View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002894Studio Archive[All Projects] FunctionsPublic2012-04-23 16:262015-07-07 16:49
Assigned ToRussell Kay 
PriorityMediumSeverityC - GeneralReproducibility100%
StatusClosedResolutionWon't Fix 
PlatformDell XPS 15ZOSWindowsOS Version7
Summary0002894: Random function doesnt give random results
DescriptionWas playing with some code for learning purposes and noticed that the random function in the init level script wasn't properly working in Gamemaker Studio. It worked fine in Gamemaker 8.1. You should get different blocks at the start of the room, but in Studio you allways get the same blocks????

Steps To ReproduceUse the file I uploaded and run the game..
Additional Informationnoop
GM Version
Attached Files? file icon demo_bug.gmz (Attachment missing)

- Relationships

-  Notes
Russell Kay (Manager)
2012-04-23 16:30

This is by design - if you want things to be truly random then call randomize() at the start of your code...

But I would caution you against this as it is very tricky to track down bugs caused by random() as each time the code is run it is not deterministic...

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker