adding random generator