'Random.choice isn't working

I'm using random.choice with a dictionary but it doesn't work. This error is displayed as AttributeError: 'function' object has no attribute 'choice' on line 90 in main.py

(made the classes before hand)

items = {"Weak Leather Boots": Item("Weak Leather Boots", 1, "Armour"),"Health Potion":Item("Health Potion", 5, "Medicine" ), "Iron Fist":Item("Iron Fist" , 5, "Weapon"), "Speed Shoes":Item("Speed Shoes", 10, "Armour"),"Gold":randint(1, 50), "Ice Wand":Item("Ice Wand", 20, "Weapon") }
def Loot(lvl):
  choose = random(items.values())

  if choose.rarity > lvl:
    choose = randint(items.values())

  else:
    print "You have found a " + choose.name
    if type(choose) is int:
        player.gold += choose

    else:
        player.inventory.append(choose.name)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source