Question: Im having trouble solving masm assembly coding question: Write a program that randomly chooses among three different colors for displaying text on the screen. Use
Im having trouble solving masm assembly coding question:
Write a program that randomly chooses among three different colors for displaying text on the screen. Use a
loop to display lines of text, each with a randomly chosen color. The probabilities for each color are to be
as follows: White blue green
Suggestion: Generate a random integer between and If the resulting integer falls in the range to
inclusive choose white. If the integer equals choose blue. If the integer falls in the range to
inclusive choose green. Test your program by running it ten times, each time observing whether the
distribution of line colors appears to match the required probabilities. Take a screenshot of one of the
outputs. points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
