Dice Roll Simulator and Multiplication-Free Factorial Calculation

Asked at Nomura · Coding Questions · Difficulty: Easy

Write a function to simulate rolling a dice and generate random results. Additionally, write three test cases to verify the randomness of the results. Also, write a function to calculate the factorial without using multiplication.

Loading the problem…