Skip to content

Instantly share code, notes, and snippets.

@emdeesee
Created November 1, 2019 19:24
Show Gist options
  • Save emdeesee/ed64baf869b1bd62db3634cc09478812 to your computer and use it in GitHub Desktop.
Save emdeesee/ed64baf869b1bd62db3634cc09478812 to your computer and use it in GitHub Desktop.
Splitting the universe to choose a drink
(ql:quickload :jsown)
(ql:quickload :dexador)
(ql:quickload :quri)
(if (evenp
(sxhash
(car (jsown:val
(jsown:parse
(dex:get
(quri:make-uri
:defaults "https://qrng.anu.edu.au/API/jsonI.php"
:query '(("type" . "uint8") ("length" . 1)))))
"data"))))
:coffee
:tea)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment