random
🎲 Generates random numbers for simulations
Module for generating pseudo-random numbers.
中文对照 · Chinese
🎲 电子摇号机与骰子发生器
用于模拟掷骰子、抛硬币和蒙特卡洛撒豆算 π。
Code example
import random die = random.randint(1, 6)Explore 100 bilingual word cards →
Module for generating pseudo-random numbers.
🎲 电子摇号机与骰子发生器
用于模拟掷骰子、抛硬币和蒙特卡洛撒豆算 π。
import random die = random.randint(1, 6)Explore 100 bilingual word cards →