Download presentation

Presentation is loading. Please wait.

Published byMackenzie Ross Modified over 4 years ago

1
Random Dr.Al-Mothana Gasaymeh

2
الرقم العشوائي بين 0 و 1 stop(); myButton2.addEventListener(MouseEvent.CLICK, myButtonClick2); function myButtonClick2(event:MouseEvent):void { var someNumber:Number = Math.random(); q.text =String(someNumber); }

3
الرقم العشوائي بين 0 و 0 1 stop(); myButton2.addEventListener(MouseEvent.CLICK, myButtonClick2); function myButtonClick2(event:MouseEvent):void { var someNumber:Number = Math.random*10(); q.text =String(someNumber); }

4
للتخلص من الكسور var someNum:Number = Math.floor(Math.random()*5); // gives you 0, 1, 2, 3, or 4 by "flattening" the decimal number var someNum:Number = Math.ceil(Math.random()*5); // gives you 1, 2, 3, 4, or 5 by raising the decimal number var someNum:Number = Math.round(Math.random()*5); // gives you 0, 1, 2, 3, 4, or 5 by rounding the decimal number up or down

5
صمم لعبة الأرقام العشوائية

Similar presentations

OK

How to round a number with two decimal places to the nearest tenth For more maths help & free games related to this, visit: www.makemymathsbetter.com.

How to round a number with two decimal places to the nearest tenth For more maths help & free games related to this, visit: www.makemymathsbetter.com.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To make this website work, we log user data and share it with processors. To use this website, you must agree to our Privacy Policy, including cookie policy.

Ads by Google

Ppt on tata group of companies Download ppt on fibre to fabric Ppt on airport site selection Ppt on servant leadership Ppt on clinical data management Best ppt on water cycle Ppt on appendicitis and nursing care Ppt on english grammar tenses Ppt on wind storms and cyclones for class 7 Ppt on nuclear family and joint family vs nuclear