Skip to content

Conversation

The-Lord-of-Owls
Copy link

Added the option to provide a single argument to the random.Number function. Behavior should mimic math.Random when provided a single argument. Purpose: Allowing math.random to be replaced with random.Number interchangeably without running into any annoying issues.

Also added a new function random.WholeNumber, same functionality as random.Number only it does not give a decimal

Added the option to provide a single argument to the random.Number function. Behavior should mimic math.Random when provided a single argument.
Purpose: Allowing math.random to be replaced with random.Number interchangeably without running into any annoying issues.

Also added a new function random.WholeNumber, same functionality as random.Number only it does not give a decimal
@The-Lord-of-Owls
Copy link
Author

Tested both random.Number and random.Whole number with zero, one and two arguments passed.

No issues found and it is behaving as intended. Ready for merge.

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

Successfully merging this pull request may close these issues.

1 participant