One-dimensional cellular automata: Difference between revisions

Updated to compile with Nim 1.4: replaced one "rand" by "sample".
(Updated to compile with Nim 1.4: replaced one "rand" by "sample".)
Line 3,236:
proc randomMap: BoolArray =
randomize()
for i in mitems(result): i = randsample([true, false])
 
 
Anonymous user