Activity 9 - Practice Random Numbers

Computers can generate truly random numbers by observing some outside data, like mouse movements or fan noise, which is not predictable, and creating data from it. This is known as entropy. Other times, they generate “pseudorandom” numbers by using an algorithm so the results appear random, even though they aren't. 

This activity is the basic of computer's capability of making choices. It interests me that random numbers can be generated with range and limit. With precise choices, computer can make a move even on its own.

Activity Guide

CREATE A NEW PROJECT Create a Windows application named RandomNumber
WRITE THE APPLICATION CODE
Me.lblRandNum1.Text = Rnd()

RUN THE APPLICATION
ADD THE RANDOMIZE() STATEMENT

GENERATE INTEGERS IN A RANGE
Randomize() 
Me.lblRandNum1.Text = Int(21 * Rnd() + 10)

RUN THE APPLICATION Save the modified RandomNumbers project and then run the 
application. Click Random Numbers a few times. 

SECURE AND SAVE SCREEN SHOTS OF THE CODE(S) AND THEIR OUTPUT(S) THEN
CLOSE THE PROJECT.
SEND YOUR FILE TO THE PRESCRIBED DESIGNATION.

Date Submitted

10 March 2021

Code (Click To Maximize)



Output (Click To Maximize)