TypeError: unsupported operand type(s) for +: 'method' and 'method'

程序代码如下:

import random
for i in range(1,11):
    a=random.randint
    b=random.randint
    right=0
    wrong=0
    print("题目:",a,"+",b)
    c=int(input("请输入结果:"))
    sum=a+b
    if sum==c:
        print("答案正确!")
        right=right+1
    elif sum!=c:
        print("答案错误,继续加油!")
        wrong=wrong+1
    else:
        print("请输入一个数字哟!")

    print("做对的题目数量:",right)
    print("做错的题目数量:",wrong)
    if wrong>2:
        print("正确率不是很高哦,继续加油!")
    if wrong==2:
        print("你的正确率是80%,还不错哦!")
    if wrong==1:
        print("Wow,你的正确率高达90%!真棒!")
    if wrong==0:
        print("哇塞,你的正确率竟然是100%!!太棒了!")

结果运行后出现Traceback:
Traceback (most recent call last):
File "C:......\加法习题.py", line 9, in module
sum=a+b
TypeError: unsupported operand type(s) for +: 'method' and 'method'

为什么呢?
我把"sum"改成字母也不行......
在线求解答......
谢谢!

a=random.randint
b=random.randint

->
a=random.randint(1,100)
b=random.randint(1,100)

问题解决的话,请点下采纳