adding random generation of tokens