Skip to content

Instantly share code, notes, and snippets.

@richarddmorey
Last active October 28, 2016 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richarddmorey/6b334f4acba3e4d69a15ccd95e59696a to your computer and use it in GitHub Desktop.
Save richarddmorey/6b334f4acba3e4d69a15ccd95e59696a to your computer and use it in GitHub Desktop.
Spooky random numbers
getSpookyNums = function(M){
s = tempfile() # to ensure no caching
my.url = paste0("http://richarddmorey.org/spooky.php?n=",M,"&",s)
as.numeric(readLines(my.url))
}
x = getSpookyNums(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment