title: Randint number into a Dict
body: <p>Is it possible to add a random number create with random.randint to a Dict ? Or is it better to add it to a List. I ask because I wan to get random.randit(0,100) and check it the List or Dict have already the number that is now generated and print out the possition on which the second same number is</p>
  
  <p>So I already tried it with append to a dict but that doesn' work! </p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>import random
  randomdict = {}
  numbposition = {}
  def randomnumber(numb):
  
      for i in random.randint(0,numb+1):
          randomdict.append(i)
          if i in randomdict:
              numbposition.index(i)
              print (numbposition)
              print (randomdict)
  while True:
      numb = int(input('Give me number: '))
      print(randomnumber(numb))
      break
  </code></pre>