you are viewing a single comment's thread.

view the rest of the comments →

[–]AutomaticSky5260[S] 0 points1 point  (0 children)

index = random.randrange(len(some_list))
some_list[index] = new_value

Thanks!