Skip to content

Latest commit

 

History

History

DiceCLI

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

DiceCLI

This recipe shows how to create an interactive command line prompt that repeatedly generates a random number between 1 and 6.

Expected Behavior:

Node.js

Prompts the user to "roll the die", and then prints a random integer between 1 and 6 to the console. User will continue to be prompted to roll again or to quit by typing "q" + ENTER.