/ Published in: ActionScript 3
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
trace( randRange( 1, 10 ));
function randRange( minNum:Number, maxNum:Number ) : Number
{
return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                