ulfben icon

Get random number between min and max

ulfben | PRO | 12/07/15 11:20:27 PM UTC | 0 ⭐ | 10770 👁️ | Never ⏰ | []
ActionScript 3 |

0 B

|

None

|

0 👍

/

0 👎

//Returns a random number between min (inclusive) and max (exclusive)
function getRandom(min:Number, max:Number):Number {
    return Math.random() * (max - min) + min;
}
 
//Returns a random integer between min (inclusive) and max (inclusive)
function getRandomInt(min, max):int {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  • Rteuixl icon
    04/02/26 04:32:26 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.@xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400
     Remove the @ 
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎