import { randInt } from './randInt.js';

export function gen() {
  var a = randInt(1000, 10000);
  var b = randInt(1000, 10000);
  var x = Math.min(a, b);
  var y = Math.max(a, b);
  var ans = y-x;
  return {question: y + '-' + x, answer: ans};
}
