input: Write a function to generate a random number within a specified range given as input. The function should receive two parameters, start and stop, and return a random integer between the two numbers (inclusive). If the start value is greater than the stop value, the function should raise a ValueError.
  
  def random_num(start, stop):
      if start > stop:
          raise ValueError("start must be less than or equal to stop")
      return random.randint(start, stop)
  
  assert random_num(0, 10) >= 0 and random_num(0, 10) <= 10
  assert random_num(100, 200) >= 100 and random_num(100, 200) <= 200
  try:
      random_num(200, 100)
  except ValueError:
      assert True
  else:
      assert False
output: def random_num(start, stop):
      if start > stop:
          raise ValueError("start must be less than or equal to stop")
      return random.randint(start, stop)