Generates a random integer number between two boundaries.
Syntax :
    HB_RandomInt( [<nMaxLimit>] ) --> nRandomInteger
    HB_RandomInt( <nMinLimit>, <nMaxLimit> ) --> nRandomInteger
Arguments :
    <nMaxLimit> : Upper boundary of the random number; default : 1.
    <nMinLimit> : Lower boundary of the random number; default : 0.
     Note that the first parameter is only interpreted as lower boundary 
     when two parameters are passed.

Return :
      The function returns a random integer value, limited by the 
      two boundaries.
 Description :
      This function generates a random number between two boundaries. 
      The boundary values are included in the range.
      When only one boundary is passed to the function, 
      it is considered the maximum boundary.
      The minimum boundary, in that case, is zero. 
      When no boundaries are passed, the function returns 0 or 1.
Note :
     Use function HB_Random() to generate real random numeric values 
     with two decimals.
See also: HB_Random(), HB_RandomSeed()


// Random creation of 0 and 1
? HB_RandomInt()

// Random number between 0 and 10
? HB_RandomInt(10)

// Random number between 8 and 10
? HB_RandomInt(8,10)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.