Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math.randomize() inconsistent behavior #40

Open
tae1han opened this issue Apr 13, 2024 · 1 comment
Open

Math.randomize() inconsistent behavior #40

tae1han opened this issue Apr 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tae1han
Copy link

tae1han commented Apr 13, 2024

Math.randomize();
Math.randomf() => float val;

<<<val>>>;

Using Math.randomize() does not seem to reset the random seed, and actually seems to explicitly seed the RNG. Above code gives the same value for Math.randomf() when run successively.

@terryzfeng terryzfeng added the bug Something isn't working label Apr 15, 2024
@terryzfeng
Copy link
Member

Was able to reproduce this behavior in the IDE. A bit low priority but worth taking a look at the randomizer for web again @gewang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants