Random Integer Generator

Published by BijogFc24 in

The challenge is simple. Return a random integer N such that a <= N <= b.

Examples

randomInt(5, 9) ➞ 7

randomInt(5, 9) ➞ 9

randomInt(5, 9) ➞ 5

Notes

  • Don't forget to return the result.
  • Return value must be an integer.
Watch a quick demo on how Edabit works.