Create a VI that simulates the rolling of five dice. The VI should have five indicators, and when it is run a random interger from 1 to 6 should appear in each box, with equal probablity for each. The VI must then calculate and display the sum of all five die with an LED indicating if the total is in the range 5-13, 14-22, or 23-30. Finally, make each dice indicator a different color.
Textbook Sections
Chapters 2-3
Programming Hints
Start each roll with the random number generator which can be found on the functions palette [Programming » Numeric » Random Number (0-1)]. As the name implies, this function will generate a random number between 0 and 1. Think about how you will turn this into an integer from 1 to 6. You may need to make use of the rounding functions on the Numeric subpalette.
Make use of Boolean and Comparison functions to configure the LEDs.