The code is included in the report.
Project Overview: This program simulates the rolling of dice, providing insights into probability and randomness, which are crucial concepts in various fields.
💡 Key Features:
- Simulates rolling dice with user-defined faces and throws
- Calculates and displays the percentage of each face appearing
- Validates user inputs to ensure they are within acceptable ranges
- Dynamically allocates memory for efficient storage of random numbers
🔧 Technical Details:
- C Programming: Developed using the C programming language
- Libraries: Utilized stdio.h for input/output, stdlib.h for random number generation and memory allocation, and time.h for seeding the random function with the current time
- Dynamic Memory Allocation: Employed malloc to handle variable storage needs
- Input Validation: Ensured robust input handling to maintain program stability