8000 Add random function to formulas by Pablete1234 · Pull Request #1087 · PGMDev/PGM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add random function to formulas #1087

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

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Add random function to formulas #1087

merged 1 commit into from
Nov 4, 2022

Conversation

Pablete1234
Copy link
Member
@Pablete1234 Pablete1234 commented Oct 22, 2022

This essentially adds support for variables generating random numbers in actions:

<set var="some_variable" value="floor(random() * 5)"/>

(would set some_variable to one of 0, 1, 2, 3 or 4)

Signed-off-by: Pablete1234 <pabloherrerapalacio@gmail.com>
@Pablete1234 Pablete1234 added the feature New feature or request label Oct 22, 2022
@Pablete1234 Pablete1234 added the ready PR is ready to merge label Nov 1, 2022
@Electroid Electroid merged commit 880c20d into dev Nov 4, 2022
@Electroid Electroid deleted the random-formula branch November 4, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ready PR is ready to merge
Development

Successfully merging this pull request may close these issues.

2 participants
0