adding random task selection back in

This adds random task selection back.