| Anonymous | Login | Signup for a new account | 2013-05-19 23:41 BST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0003298 | GameMaker: Studio | [All Projects] Functions | public | 2012-05-12 10:28 | 2013-03-05 20:48 | |||
| Reporter | Erik Leppen | |||||||
| Assigned To | Chris Harrison | |||||||
| Priority | Low | Severity | D - Minor | Reproducibility | N/A | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Summary | 0003298: random(1.8) is always between 0 and 1 | |||||||
| Description | It 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 Reproduce | repeat 100 { show_debug_message(string(random(1.8))) } | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0004383) Chris Harrison (manager) 2012-06-20 17:14 |
v >= 1.0.256 |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-05-12 10:28 | Erik Leppen | New Issue | |
| 2012-05-12 10:32 | Mike Dailly | Assigned To | => Chris Harrison |
| 2012-05-12 10:32 | Mike Dailly | Status | new => assigned |
| 2012-06-20 17:14 | Chris Harrison | Note Added: 0004383 | |
| 2012-06-20 17:14 | Chris Harrison | Status | assigned => resolved |
| 2012-06-20 17:14 | Chris Harrison | Resolution | open => fixed |
| 2013-03-05 20:48 | Daniel Cleaton | Status | resolved => closed |
| Copyright © 2000 - 2012 MantisBT Group |