Last active
October 28, 2016 17:53
-
-
Save richarddmorey/6b334f4acba3e4d69a15ccd95e59696a to your computer and use it in GitHub Desktop.
Spooky random numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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