I got past the randomness, use a multiplexer. the A input would be the output of the mux (it cycles) and the B input would be the data. the select would be the output. I tested it in Sebastian's RAM-256x8 and got all 0s.