Skip to content

Instantly share code, notes, and snippets.

@mcnemesis
Last active April 23, 2019 09:27
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 mcnemesis/515ebf9263369b0367e6e0037c7e7edb to your computer and use it in GitHub Desktop.
Save mcnemesis/515ebf9263369b0367e6e0037c7e7edb to your computer and use it in GitHub Desktop.
A method to generate stochastic boolean matrices in R
library(openssl)
matrix(sapply(c(rand_num(100)), (function(n) (round(n*100)%%2))), nrow=5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment