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

Function rand() does not appear in the API on the website #1397

Open
Pieter12345 opened this issue Feb 20, 2025 · 0 comments
Open

Function rand() does not appear in the API on the website #1397

Pieter12345 opened this issue Feb 20, 2025 · 0 comments

Comments

@Pieter12345
Copy link
Contributor

Pieter12345 commented Feb 20, 2025

Function: https://github.com/EngineHub/CommandHelper/blob/master/src/main/java/com/laytonsmith/core/functions/Math.java#L1118-L1120

Usage of rand() seems to work as intended and reflect_docs('rand', 'description') results in

Returns a random number from 0 to max or min to max, depending on usage. Max is exclusive. Min must be less than max. This will return an integer. If no arguments are given, a random double from 0.0 to 1.0 (exclusive) will be returned.

as expected.

The rand() function does have its own API page that works: https://methodscript.com/docs/3.3.5/API/functions/rand.html

I'm expecting this to be a bug in the API webpage generation code, which might affect other functions as well.

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

No branches or pull requests

1 participant