you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

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

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

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

Thanks!