Variations to a basic riff can be achieved by changing the sequence and/or timing of the notes. For example, riff one could be varied as such:
Variation One - altering the note sequence.
Variation Two - altering the timing.
Variation Three - altering the sequence and timing.
Play each of these variations against the 12 bar in A. Experiment with some of your own combinations.