adding random pattern feature