Question: Create a random integer numbers that goes from 0 to 5 and assign it to a variable y using rand and round commands Hint: Note

 Create a random integer numbers that goes from 0 to 5

Create a random integer numbers that goes from 0 to 5 and assign it to a variable y using rand and round commands Hint: Note that rand function only creates random number between 0 and 1. You need to scale the values to get random numbers from 0 to 5 (multiply by 5). You also need to round the generated random numbers to get an integer value. Use round command [5 points] a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!