doorooful/PollsAPI

Option Indexing

Closed this issue · 0 comments

Use random number indices for options.

AC:

  • get random number
  • numbers should not be duplicated
  • sample code is below:
# TODO: rand1, rand2, rand3 are different
rand1 = random.randint(0,1000)
rand2 = random.randint(0,1000)
rand3 = random.randint(0,1000)
optionDictionary = {
"option1":rand1,
"option2":rand2,
"option3":rand3
}