module.exports = {
  randomRescue: function () {
    randomName = ( Date.now() - parseInt( ( Math.random() * Math.random() ) * 1000000 ) ).toString( 36 );

    return {
      client: {
        CMDRname: 'CMDR ' + randomName,
        nickname: randomName,
      },
      codeRed: !!Math.round( Math.random() ), // Randomly decide if this is a code red
      system: 'Eravate',
      platform: Math.round( Math.random() ) ? 'PC' : 'XB' // Randomly decide if the client is PC or Xbox
    };
  },

  randomRat: function () {
    randomName = ( Date.now() - parseInt( ( Math.random() * Math.random() ) * 1000000 ) ).toString( 36 );

    return {
      CMDRname: 'CMDR Test Rat ' + randomName,
      gamertag: 'Gamertag Test Rat ' + randomName,
      drilled: !!Math.round( Math.random() ), // Randomly decide if this rat has been drilled
      nickname: randomName,
    };
  }
};

module.exports = {
  randomRescue: function () {
    var randomName;

    randomName = ( Date.now() - parseInt( ( Math.random() * Math.random() ) * 1000000 ) ).toString( 36 );

    return {
      client: {
        CMDRname: 'CMDR ' + randomName,
        nickname: randomName,
      },
      codeRed: !!Math.round( Math.random() ), // Randomly decide if this is a code red
      system: 'Eravate',
      platform: Math.round( Math.random() ) ? 'PC' : 'XB' // Randomly decide if the client is PC or Xbox
    };
  },

  randomRat: function () {
    var randomName;

    randomName = ( Date.now() - parseInt( ( Math.random() * Math.random() ) * 1000000 ) ).toString( 36 );

    return {
      CMDRname: 'CMDR Test Rat ' + randomName,
      gamertag: 'Gamertag Test Rat ' + randomName,
      drilled: !!Math.round( Math.random() ), // Randomly decide if this rat has been drilled
      nickname: randomName,
    };
  }
};

Add missing var declarations