Not at all sure this is the right way to do it...
function randBinStr( len::Int )
res = repeat( "0", len )
replace( res, r"(.)", x -> ( rand() < 0.5 ? "0" : "1" ) )
endOn Saturday, March 29, 2014 9:49:59 AM UTC-4, andrew cooke wrote: > > can you post randBinStr? don't have an explanation, just curious. the > following seems fine: > >
