homework writing program in python
Write a Python program that will generate one million random numbers between 1 and 50 inclusively and the then output the frequency count to a file call out.dat. The format of the output on this file is:
Number1, fquency_count_of_number1
Number2, fquency_count_of_number2
…
Number50, fquency_count_of_number50