20
法鲁洗牌数组
阿法鲁洗牌是经常使用的魔术到“洗牌”甲板的技术。要执行Faro随机播放,您首先将卡座切成相等的两半,然后将这两个半插入。例如 [1 2 3 4 5 6 7 8] 法鲁洗牌是 [1 5 2 6 3 7 4 8] 可以重复多次。有趣的是,如果重复此次数足够多,您将总是回到原始数组。例如: [1 2 3 4 5 6 7 8] [1 5 2 6 3 7 4 8] [1 3 5 7 2 4 6 8] [1 2 3 4 5 6 7 …
31
code-golf
permutations
card-games
code-golf
graphical-output
random
code-golf
image-processing
color
code-golf
primes
code-golf
math
arithmetic
combinatorics
decision-problem
code-golf
sequence
number-theory
binary
code-golf
number-theory
set-theory
code-golf
hashing
code-golf
game
card-games
code-golf
ascii-art
code-golf
arithmetic
array-manipulation
jelly
code-golf
string
array-manipulation
code-golf
sorting
code-challenge
code-golf
number
date
binary
code-golf
arithmetic
code-golf
math
number
linear-algebra
polynomials
code-golf
ascii-art
code-golf
grid
decision-problem
code-golf
string
combinatorics
code-golf
string
kolmogorov-complexity
arithmetic
date
code-golf
number
data-structures
code-golf
ascii-art
kolmogorov-complexity
code-golf
string
ascii-art
code-golf
ascii-art
kolmogorov-complexity
code-golf
array-manipulation