Dice Roll Bar Graph
Last Updated: 8/7/18
Teaching Standard:

This module uses random number generators to simulate dice rolls. The user can provide any number of different sided dice and the number of times the dice are rolled. The program will then produce a bar graph with the results and display the most commonly occurring result. Advanced array usage and bar graph plotting in python are incorporated into this module.

The presentation material and the code can be downloaded at
Contact Us
College of Engineering and Physical Sciences
Engineering Education and Research Building (EERB)
- Room 401
- 1000 E. University Ave
- Laramie, WY 82071
- Dept. 3295
- Email: enginfo@uwyo.edu
- Phone: (307) 766-4253
The University of Wyoming has earned its Research Level 1 (R1) status from the Carnegie Classification of Institutions of Higher Education, placing Wyoming's only four-year university with the top research universities in the United States.
