ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: randomInt

randomInt(n) returns a random integer in [0, n[. Observe that n is never returned: all in all, n distinct numbers may be returned.

randomInt(a, b) returns a random integer in [a, b]. Thus a − b + 1 distinct values may be returned.