We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
吾观一书。名曰「周易」
import random
自「周易」之书引「卦」引「间」引「签」引「时」引「乱」
from random import random, randint, choice, seed, shuffle
吾有一「间」。名曰「俸禄」。欲卜此卦。必先得两数。曰「低」「高」
salary = random.randint(low, high)
吾有一「签」。名曰「彩」。欲卜此卦。必先得一列。曰「签筒」
lot = random.choice(lottery_pool)
设「周易」之「时」于「贞观元年」
random.seed(627)
施「乱」于「寰宇」
random.shuffle(universe)
Reference: #87 [Feature Request] Random
The text was updated successfully, but these errors were encountered:
random 内部应该都是术吧 为什么会变成欲卜此卦。 这样以后写其他库会不会每个都要实现一个各自的写法? (或者欲卜此卦。的作用是起到randint加上random.的作用?
欲卜此卦。
randint
random.
Sorry, something went wrong.
See #290 for the new baseline Random standard library inspired by this syntax. Thanks!
易经是个包罗万象的哲学观,不应该局限在生成随机数或者算卦之类的
吾观一书。名曰「卜」
易经内涵太丰富,用“卜”似乎是个简洁的名字。
No branches or pull requests
Syntax
吾观一书。名曰「周易」
import random
自「周易」之书引「卦」引「间」引「签」引「时」引「乱」
from random import random, randint, choice, seed, shuffle
吾有一「间」。名曰「俸禄」。欲卜此卦。必先得两数。曰「低」「高」
salary = random.randint(low, high)
吾有一「签」。名曰「彩」。欲卜此卦。必先得一列。曰「签筒」
lot = random.choice(lottery_pool)
设「周易」之「时」于「贞观元年」
random.seed(627)
施「乱」于「寰宇」
random.shuffle(universe)
Reference: #87 [Feature Request] Random
The text was updated successfully, but these errors were encountered: