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

Input data in random statements #733

Closed
matteo-cristino opened this issue Sep 26, 2023 · 3 comments
Closed

Input data in random statements #733

matteo-cristino opened this issue Sep 26, 2023 · 3 comments

Comments

@matteo-cristino
Copy link
Collaborator

A lot of statements in zencode_random.lua take data in input directly from the statement without looking in Zenroom data. These statements acts totally different from all the other zencode statements. Maybe also in this case a

local data = mayhave(data_name) or data_name

should be used.

@matteo-cristino
Copy link
Collaborator Author

Maybe also print a warning in the statement

When I create the array of '' random numbers modulo ''

when the chosen modulo is bigger than 65,535 (since we are using unsigned int16).
For example I was trying to create a random number between 0 and 10800000 but I was only getting "small" numbers without knowing why.

@matteo-cristino
Copy link
Collaborator Author

The above statements should works with big integers instead of float to increment the range of random numbers.

@matteo-cristino
Copy link
Collaborator Author

fixed in #734

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant