Fix bug adding random values when an attempt start. It was caused because I worked with an wrong attempt_id value.
This bug caused that programmed questions doesn't work with Extended Quiz random values. It take me a lot of time to be fixed.