Topics

13. Alert
25. Array
26. Array Sorting
23. Classes
19. Concat
21. Do While
16. Event Handlers
8. For
17. Form
9. Function
20. Hello World
4. HTML
11. If Else
22. Letter to Number
14. Loop
24. Madlib
3. Math
7. Modulus
15. Popups
6. Prime
5. Random
18. String
10. Switch
12. Textfield
1. User Input
2. While

Topic: Random

8. Design a program that outputs 21 random numbers between 1 -1000. Display the numbers in an HTML table that is 3 columns wide and as many rows as needed. Your table borders need to be visible.
Modifications
  1. Modify the program to allow the user to set the column number of the table. If random numbers do not complete the last row then fill in the empty spaces with cells with non-breaking spaces  
  2. Modify the program to all the user to set the number of random numbers
  3. modify the program to allow the user to set the ending range
  4. modify the program to allow the user to set the starting range
See more

9. Fill an array of random numbers 1-100 of 25. Sort the array from smallest to largest numbers See more

25. Create a function that asks a user for a number. Generate that number of random numbers. Write the numbers to the screen. See more

33. Fill an array of random numbers 1-2500. You should have 25 numbers. What was the largest number rolled? See more

34. Create a number guessing name. The random number to guess should be between 1 and 100. Keep all the guesses made in an array. Count the number of guesses. As the user guesses, tell the user if they are too low or are too high. See more

38. Create a form that collects 3 numbers from the user in a form. Use GET to collect the variables. Use the first and second numbers with the rand() function to create random numbers. Use a loop to create the third number's worth of random numbers. See more

40. Create a while loop that generates 100 random numbers. Only run the loop 50 times. See more

41. Create a for loop to run 35 times, but display the counter variable in front of the numbers. Generate 3 random numbers 1-25 in each iteration of the for loop. See more

42. Create a 0 player rock paper scissors game. Why 0 players? Make the computer play against itself. Run the process 3 times. See more