Last active
April 23, 2019 09:27
-
-
Save mcnemesis/515ebf9263369b0367e6e0037c7e7edb to your computer and use it in GitHub Desktop.
A method to generate stochastic boolean matrices in R
This file contains hidden or 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
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