Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003298GameMaker: Studio[All Projects] Functionspublic2012-05-12 10:282013-03-05 20:48
ReporterErik Leppen 
Assigned ToChris Harrison 
PriorityLowSeverityD - MinorReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0003298: random(1.8) is always between 0 and 1
DescriptionIt seems that if the upper limit for random is a fraction greater than 1, the non-integer part is ignored. I.e.
random(1.8) returns a random number between 0 and 1
random(2.8) returns a random number between 0 and 2
etc.
However random(0.8) seems to work correctly.
Steps To Reproducerepeat 100 {
  show_debug_message(string(random(1.8)))
}
GM Version
Attached Files

- Relationships

-  Notes
(0004383)
Chris Harrison (developer)
2012-06-20 17:14

v >= 1.0.256


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker