Generate a random lock pattern
