Only element i will changed in the new state vector. Then choose another unit at random and repeat the process. For a rough equivalent to ten synchronous cycles, try using 100 asynchronous updates. Re-initialize and repeat this procedure a few times. Play around with it.
Chances are it'll do pretty well.
Then verify that the network can recall both patterns. Then repeat the procedure from the beginning, but construct the Hopfield network from three random patterns, then four, five, six, and so on until verification begins to fail. Save the resulting connectivity matrix in a separate array.