qc.Math.random

Prototype

  • number random(min, max)

Paramters

Paramter Type Description
min number min value
max number max value
return number A random real number between min and max.

Description

Returns a random real number between min and max

Example

    // return 1
    var ret = game.math.random(1,4);

    // return 3
    var ret = game.math.random(1,4);