Optional Hacks (ONLY 1 is REQUIRED TO BE COMPLETED!)

Hack 1: Random Color Generator

Generate random RGB colors with one click Format: rgb(random, random, random) where each is 0-255 Change the background color of a box to show the color Display the color code so users can copy it

Hack 2: Random Password Maker

Create passwords with random letters and numbers Let users choose password length (6-20 characters) Use arrays: [‘a’,’b’,’c’…‘z’,’0’,’1’…‘9’] One button generates a new password each time

Hack 3: Coin Flip Streak Tracker

Flip a coin (Heads or Tails) with random 50/50 chance Track the longest streak of same results in a row Example: “Heads, Heads, Heads = 3 streak!” Show current flip and best streak ever

Hack 4: Random Compliment Generator

Pick random compliments from a list of 10-15 nice phrases “You’re awesome!”, “Great job today!”, “You’re very smart!” Click button to get a new random compliment Simple mood booster app

Hack 5: Number Guessing Game

Computer picks random number 1-50 User tries to guess it Show “Too high!” or “Too low!” hints Count how many guesses it takes to win

Hack 6: Random Team Maker

Enter 6-10 names in a text box Randomly split them into 2 equal teams Use array shuffling with random numbers Display Team A and Team B lists

All use basic Math.random(), Math.floor(), arrays, and simple HTML buttons/displays!