How do you generate random numbers within a given limit with actionscript? : adobe flex action script
Answer / Prakhar Bajpai
To generate a random number within a specific range in ActionScript, you can use the Math.random() function and specify your limits. Here's an example:
var min:Number = 1;
var max:Number = 100;
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the dynamic keyword used for in flex actionscript?
What is shared object? (Or) how to store the data in local?
What is an Event Propagation?
Explain about different types of channels available in blaze ds?
What is default frame rate of the timeline in frame per second? : adobe flex action script
If I purchase flex builder 2, am I eligible for an upgrade to flex builder 3?
Difference between array and array collection?
What are the advantages of adobe flex?
Difference between sealed class and dynamic class?
Can I dynamically instantiate a webservice or httpservice in actionscript? : adobe flex action script
What design patterns have you used in actionscript and java? : adobe flex action script
How do I make synchronous data calls in actionscript? : adobe flex action script