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

add the Random library of ROBLOX. #46

Open
jLn0n opened this issue May 12, 2023 · 5 comments
Open

add the Random library of ROBLOX. #46

jLn0n opened this issue May 12, 2023 · 5 comments
Labels
enhancement New feature or request roblox Issues pertaining to the built-in Roblox library

Comments

@jLn0n
Copy link

jLn0n commented May 12, 2023

I don't wanna taint the math.random, and I want to have a psuedorandom thing for my code.

@filiptibell filiptibell added enhancement New feature or request roblox Issues pertaining to the built-in Roblox library labels May 12, 2023
@metatablecat
Copy link

I want to do this as a fun little Rust project.

Random is an extension of math.random, they both internally use the same algorithm. The issue is establishing what the "internal entropy" is if you dont define a seed.

@metatablecat
Copy link

metatablecat commented Nov 5, 2023

I'm going to use an unsigned float of the current CPU clock time as the internal seed. Probably isn't at parity but the number isn't meant to be defined anyway lol

@Someon1e
Copy link
Contributor

@metatablecat hi, are you still working on this?

@metatablecat
Copy link

metatablecat commented May 7, 2024

I gave up on this a while ago, as I stated above, I cant figure out how the internal seed is generated, and I want feature parity.

@RuizuKun-Dev
Copy link

@metatablecat I think instead of CPU time try using tick or os.time that seems to be what Roblox is using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request roblox Issues pertaining to the built-in Roblox library
Projects
None yet
Development

No branches or pull requests

5 participants