Comments (2)
As designed, docs say "Generate 32 bit random number in [low,high) range" which should be read as low value is included in returned values while high value is excluded.
from foundation_lib.
Reasoning behind this is that a normal use case is to randomize an index into an array. You can then do random32_range(0, size), in which case you don't want to have size as a returned value since that would index outside the array.
from foundation_lib.
Related Issues (20)
- Case insensible compare functions HOT 5
- Support for killing process HOT 4
- Problems building foundation_lib using MSYS2 (MinGW) HOT 11
- What about closed/commercial project HOT 3
- build ? HOT 2
- Shared memory HOT 1
- Python3 compatibility HOT 6
- Lots of errors on Travis for macOS HOT 4
- Build errors on OSX/iOS HOT 13
- Dead link HOT 1
- Thread Pool support HOT 1
- Consider remove PNaCl support HOT 6
- Why this library? Why C for game? HOT 2
- Maybe a bug in POSIX fs_is_file HOT 2
- Question: why use objectmap for refcount objects HOT 5
- tests crash on VS2013 when building as debug and release HOT 7
- CMake support? HOT 2
- Typo HOT 1
- Loading library from relative directory doesn't work HOT 7
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 foundation_lib.