Javascript lesson 5 - generating random numbers VIDEO
In this lesson we improve on our quiz by generating 2 random numbers using the Math.random() function to make up the maths question. We then check our answer against the 2 variables to see whether we got it correct. A random maths addition quiz created!
Download source file at: http://magicmonk.org/javascript
Other Videos By Magic Monk 2014-04-07 Vectors lesson 4 - Unit vectors, 2D position vectors 2014-04-07 Vectors lesson 3 - scalar multiplication 2014-04-06 Blender lesson 3 - Edit mode - selecting/translating/extruding faces, subdividing faces 2014-04-05 Inequalities lesson 1 2014-04-04 Blender lesson 2 - view switching (top/right/front), panning navigation, scaling object 2014-04-04 Blender lesson 1 - navigating around 3D environment, translating object, screencast 2014-03-25 Javascript lesson 9 - timer, reload, inserting buttons dynamically 2014-03-24 Javascript lesson 8 - object oriented programming principles 2014-03-22 Javascript lesson 7 - Arrays 2014-03-20 Javascript lesson 6 - Using the for loop 2014-03-19 Javascript lesson 5 - generating random numbers 2014-03-18 Javascript lesson 4 - using the IF statement to check form contents 2014-03-13 Javascript lesson 3 - accepting input from user using message box or html form 2014-03-09 Javascript lesson 2 - variables, appending strings, adding numbers 2014-03-03 Vectors lesson 2 - horizontal / vertical components, finding the magnitude and bearing 2014-03-02 Vectors lesson 1 - vector vs. scalar quantities, magnitude and direction, vector addition. 2014-03-01 Surds problem solving question 3 2014-02-27 Surds problem solving question 2 2014-02-26 Javascript lesson 1 - setting up editing environment, printing string to page 2014-02-23 Surds problem solving question 1 2014-02-18 Mind Reading Trick 9 Tutorial
Tags: create a quiz javascript
javascript quiz creation tutorial
javascript random number generator
javascript tutorial