Skip to content

Instantly share code, notes, and snippets.

View liz-baker's full-sized avatar

Liz Baker liz-baker

  • Prokeep
  • Columbus, OH
  • 11:14 (UTC -04:00)
View GitHub Profile
11111 abacus
11112 abdomen
11113 abdominal
11114 abide
11115 abiding
11116 ability
11121 ablaze
11122 able
11123 abnormal
11124 abrasion

Keybase proof

I hereby claim:

  • I am dosman711 on github.
  • I am dosman711 (https://keybase.io/dosman711) on keybase.
  • I have a public key ASD7JAzeWrxp07rY8wFVrr1GiT6tZSrEvRE-rRNC5yKOXgo

To claim this, I am signing this object:

@liz-baker
liz-baker / dice.zsh
Created May 30, 2014 01:10
Handles dice in the form of NdS, where N is number and S is die size
#!/bin/zsh
let num=${1%d*}
let die=${1#*d}
let result="$num*($[$RANDOM % $die]+1)"
print $result