Logic to generate random number · Step 1: We use a modulus operator in our program. · Step 3: For example, For a = 1243 and b = 100 then, a % b = ...
確定! 回上一頁