random on/off with shift register

The following is the link to the standard tutorial on the subject -

There is a schematic that, erroneously and infamously, shows the use of a capacitor on the Latch pin - DO NOT USE IT.
I have attached a revised drawing with the correction.
Once you learn how to knock out bytes then you can learn how to generate a random number and then incorporate the two.