title: How to test a range of numbers with Jest?
body: <p>I have:</p>
  
  <pre><code>const BOARD = {
    size: {
      columns: 5,
      rows: 5,
    },
  }
  </code></pre>
  
  <p>and a Redux action creator that generates a position within the board's size:</p>
  
  <pre><code>const generateInitialPlayerPosition = (
    { 
      x = random(0, BOARD_SIZE.size.rows - 1), 
      y = random(0, BOARD_SIZE.size.columns - 1) 
    } = {}) =&gt; ({
    type: GENERATE_INITIAL_PLAYER_POSITION,
    payload: { x, y },
    }
  )
  </code></pre>
  
  <p>I need to test that <code>generateInitialPlayerPosition</code> won't return any <code>x</code> or <code>y</code> greater than 4 in this case</p>