input: Write a function to generate a random number between two given numbers (inclusive). If the provided numbers are the same, return that number. The function should handle negative numbers and numbers in reverse order. Use the random module.
  
  import random
  assert random_number_generator(2, 5)==3  # Example output
  assert random_number_generator(-10, -5)==-8  # Example output
  assert random_number_generator(7, 7)==7
  assert random_number_generator(-3, 2)==0  # Example output
  assert random_number_generator(5, 2)==4  # Example output
output: def random_number_generator(a, b):
      return random.randint(min(a, b), max(a, b))