1 00:00:00,560 --> 00:00:04,120 You’ve learned how to work with numbers and perform math with JavaScript. 2 00:00:04,120 --> 00:00:06,320 You also learned how to create random numbers. 3 00:00:06,320 --> 00:00:08,710 I think you’re ready for a programming challenge. 4 00:00:08,710 --> 00:00:11,980 In this challenge, you’ll create a random number generator. 5 00:00:11,980 --> 00:00:16,420 It should collect a number from a user then print a random number from one 6 00:00:16,420 --> 00:00:18,400 up to the users provided number. 7 00:00:18,400 --> 00:00:21,630 To get started, launch the new workplace with this video. 8 00:00:21,630 --> 00:00:23,520 In the file random.js, 9 00:00:23,520 --> 00:00:26,910 I've included comments with instructions on what you'll need to do. 10 00:00:26,910 --> 00:00:29,940 You'll use some of the concepts you've learned so far to complete this challenge. 11 00:00:31,660 --> 00:00:34,600 First, you'll need to collect a user's input, 12 00:00:35,710 --> 00:00:38,970 then convert that input from a string to a number. 13 00:00:38,970 --> 00:00:42,390 This will be the highest possible random number in the range of numbers 14 00:00:42,390 --> 00:00:43,125 starting from 1. 15 00:00:44,170 --> 00:00:46,900 Then use the Math.random method 16 00:00:46,900 --> 00:00:50,190 to create a random number using the number provided by the user. 17 00:00:51,250 --> 00:00:54,980 Finally you'll create a message displaying the random number. 18 00:00:54,980 --> 00:00:57,380 You can use any method you want to display the message. 19 00:00:57,380 --> 00:01:02,180 For instance, printed to the council, displayed on the page or with an alert. 20 00:01:02,180 --> 00:01:05,111 The goal is to get your program to work similarly to this. 21 00:01:09,548 --> 00:01:13,480 So good luck, have fun, and in the next video, I'll show you how I did it.