Using the R Programming language with RStudio 1. create a script that generate arandom number (between 1
Fantastic news! We've Found the answer you've been seeking!
Question:
Using the R Programming language with RStudio
1. create a script that generate arandom number (between 1 to 10)(need to research on the correct random function), Display the number and store it in var 1.
2.Run step 1to generate a second number (say var 2).Display the number and add the number to the number in step 1 (var1 ->
3.Use IF statements and run the following: If var 1 below 16, repeat step 2. If the number is between 16 and 21, print out a statement "hold" and stop the game. If var 1 is above 21, print out a statement "busted" and stop the game.
Posted Date: