Page MenuHomeFeedback Tracker

Math.RandomInt is not random
Assigned, NormalPublic

Description

It appears the default mode for Math.RandomInt is only seeded and thus not random. There is the option to seed is based on the current time by passing in -1 but that really should be the default. If someone needs deterministic testing they should fixate the seed themselves. Modders expect a random function to be random ;)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Jun 2 2022, 2:04 PM
Geez changed the task status from New to Assigned.Jun 9 2022, 12:27 PM