Comments (9)
You mean that if the highBound (2nd argument) is smaller than the lowBound (1st argument), it should swap them?
For me on 1.36.1.21015, this is not the case for GetRandomInt
, either.
The formulae for min and max output values seem to be:
min = lowBound
max = (lowBound > highBound) ? (2 * lowBound - highBound) : highBound
edit: Also seems to hold for GetRandomReal
.
from jassdoc.
GetRandomInt
does sawp the value but GetRandomReal
does not
from jassdoc.
Related Issues (20)
- Reach a conclusion on SetBlight desync HOT 2
- SetUnitX / out of map boundary orders crash? HOT 1
- Change End-of-Line (EOL) for Blizzard.j
- How to integrate historical Jass data? HOT 3
- Does this include vJass? HOT 4
- Web search issue HOT 1
- mksrc: some values contain trailing new line HOT 1
- Confirm and add UNIT_WEAPON_IF_ATTACK_TARGETS_ALLOWED HOT 1
- Where to put `CreateUnitWithoutShadow`. HOT 3
- Some curious findings about events
- Clarify TriggerSleepAction
- TODO List: Follow-up on #68 HOT 1
- common.ai documentation? HOT 5
- Incorporate info from wc3jass.com? HOT 2
- Investigate natives when 6+ inventory slots
- Set Terrain tile native: unlimited tile choice in SD Reforged?
- Expand GetPlayerTechCount HOT 1
- 1.31: Specific Unit Events lost during game save/load
- Advice against "constant handle"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jassdoc.