pyrandtoys
v1.0.0
pyrandtoys 확률 기반 장난감의 기능을 포함하는 파이썬 모듈입니다.
오프라인으로 작동하며 Python 2 및 3과 호환됩니다.
pip install pyrandtoys
import pyrandtoys
print(pyrandtoys.coin()) #there are many other toys in pyrandtoys similar to coin, check below
선택 사항 : 주사위 수 <int>
기본값 : 주사위 수 = 1
반환 유형 : <tuple>
dice(number_of_dice)
선택 사항 : 동전 수 <int>
기본값 : 동전 수 = 1
반환 유형 : <tuple>
coin(number_of_coins)
선택 사항 : 카드 수 <int>
기본값 : 카드 수 = 1
반환 유형 : <tuple>
card(number_of_cards)
선택 사항 : 항목 수 <int>
기본값 : 항목 수 = 1입니다
반환 유형 : <tuple>
dreidel(number_of_dreis)
cat(number_of_cats)
switch(number_of_switches)
필수 : 하부 및 상한 <int>
기본값 : 하한 = 0
반환 유형 : <int>
spinner(lowerLimit, upperLimit)
반환 유형 : <tuple>
기본값 : 장난감 수 = 0입니다
장난감의 조합을 사용하려면
필수 : 장난감 이름으로 <tuple>, <list>, <str>
combi("coin", "switch")
combi(("switch", "cat", "dice"))
combi(["dreidel", "coin", "coin", "cat"])
X 임의의 장난감의 조합은
combi(x)