Releases: bharathidas/RandomGenerator
Release list
Random Generator
Random Generator — Studio Pro 10.24.17
Fixed
randomNumberBetween ignored the lower bound. Asking for a number between 5 and 10 returned 0–4. Mendix passes Integer parameters as big.js objects whose valueOf() returns a string, so the underlying library's Math.random() * (max - min) + min concatenated min instead of adding it, and Math.floor then discarded the appended digits. Verified over 20,000 iterations before and after. A minimum of 0 also works correctly — the library's own if (!min) guard would have rejected it.
generateRandomNumber returned fewer digits than requested. The value was assembled as a digit string that could begin with zeros; the Integer return type then dropped them, so roughly one call in ten came back short. The leading digit is now never zero, and the result always has exactly the requested number of digits.
Both defects predate the 10.24.17 upgrade — they are present in Version2.0.0 and in the earlier 9.24.18 package. Upgrading is strongly recommended.
Known remaining behaviour
generateRandomPasswordmakes no guarantee that a password contains a digit, an uppercase letter or a symbol. Validate the result if you need a character-class policy.maxis exclusive inrandomNumberBetween.- Values are derived from
Math.random()and are not cryptographically secure. Do not use them for tokens, keys or session identifiers.
Notes
Studio Pro 10.24.17, imports with 0 errors. Import RandomGenerator.mpk via App Explorer > Import module package.
Random Generator
Random Generator — now supported on Mendix Studio Pro 10.24.17
Rebuilt from Studio Pro 9.24.18 to 10.24.17 (LTS). No functional changes — this release only updates Studio Pro compatibility.
Import RandomGenerator.mpk via App Explorer > Import module package in Studio Pro 10.24.17 or higher.
You can generate random numbers, text, password or value that you want with custom length easily.
Features
• generateRandom- Generate random number with character set.
• generateRandomNumber- Generate a random number (custom length).
• generateRandomPassword- Generate a random password (custom length).
• generateRandomText- Generate a random text (Upper and Lower case).
• randomNumberBetween- Generate a random number between (min,max).
Dependencies:
• Mendix modeler 9.24.18.
Issues, suggestions and feature requests
https://github.com/bharathidas/RandomGenerator/issues
Random Generator
You can generate random numbers, text, password or value that you want with custom length easily.
Features
• generateRandom- Generate random number with character set.
• generateRandomNumber- Generate a random number (custom length).
• generateRandomPassword- Generate a random password (custom length).
• generateRandomText- Generate a random text (Upper and Lower case).
• randomNumberBetween- Generate a random number between (min,max).
Dependencies:
• Mendix modeler 9.24.18.
Issues, suggestions and feature requests
https://github.com/bharathidas/RandomGenerator/issues
