Twitter http://twitter.com/AppleScriptive/
Blog (not set)
Website (not set)

0 score

(Pseudo)random 6-digit number

 $ let N=0 N=N+10**{0..5}*${RANDOM:0:1}

Dec. 7, 2019, 3:26 p.m.CK

0 score

Compute factorial of positive integer using only built-ins

 $ factorial() ( eval let n=1 n={1..$1}*n ; echo $n )

Nov. 29, 2019, 9:06 p.m.CK

0 score

Generate a sequence of numbers

 $ printf '%s\n' {1..10}

Nov. 25, 2019, 8:11 a.m.CK

0 score

Recursively compute factorial of positive integer using only built-ins

 $ factorial() { local N=${1:-1} k=${2:-1} && let k=( k * N ) --N && factorial $N $k || echo $k; }

Nov. 25, 2019, 8:06 a.m.CK