Lucky Draw
JavaScript
20 pts
Lucky Draw
The Asmara school club runs a lucky draw. Create:
ticket— a random whole number frommin(100) tomax(120), both included. Use the min–max pattern withmax - min + 1.percent— a random whole number from 0 to 100, both included.
Print two lines like this (your numbers will differ):
Ticket: 108 Chance: 47%
Checklist
- Create
ticketfrom 100 to 120 with the min–max pattern. - Create
percentfrom 0 to 100. - Print both lines with their labels.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
