Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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