模拟1n的概率

    xiaoxiao2025-04-08  12

    rand()%n==0

    生成一个无边界随机数,能被n整除的概率是1/n

    转载请注明原文地址: https://ju.6miu.com/read-1297868.html
    最新回复(0)