|
SOLUTIONS
|
MATHEMATICA 内置符号
RandomPermutation
RandomPermutation[gr]
给出置换群 gr 中的一个伪随机置换.
RandomPermutation[gr, n]
给出置换群 gr 中 n 个伪随机置换的列表.
更多信息更多信息
- 置换按照在给定的群中的均匀分布返回.
- 结果以不相交轮换的形式给出,头部为 Cycles.
- RandomPermutation[d] 和 RandomPermutation[d, n] 返回 d 次对称群中的置换.
- 每一次运行 Mathematica 时 RandomPermutation 都返回次序不同的伪随机置换. 用户可以使用 SeedRandom 从某一特定的种子开始.
- SeedRandom 中的一个 Method 选项可用来指定所使用伪随机生成程序.
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

