Advertisement
lethargicwaldo

Untitled

Nov 25th, 2023 (edited)
597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Generate a random number between 1 and 15
  2. const randomNumber = Math.floor(Math.random() * 15) + 1;
  3.  
  4. // Check if the random number is above 6
  5. const result = randomNumber > 6 ? 'BIG' : 'SMOL';
  6.  
  7. // Print the result
  8. return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement