input: Write a function to generate a random number between the given input numbers. Use the `random.randint` method from Python's `random` module. The function should accept two parameters: `start` and `stop`, and return a random integer between these two numbers, inclusive of both endpoints.
  
  assert random_num(0, 10) in range(0, 11)
  assert random_num(5, 15) in range(5, 16)
  assert random_num(-5, 5) in range(-5, 6)
  assert random_num(1, 1) == 1
  assert random_num(-10, -5) in range(-10, -4)
output: import random
  
  def random_num(start, stop):
      return random.randint(start, stop)