Randomness in Python set-structure
I recently investigated our analysis code for the source of unwanted randomness. The culprit turned out to be the set-datatype in Python. For example, running following code produces varying order of the items between different runs:
idList = [ "ID" + str(i) for i in range(10) ] idSet = set(idList) print(idSet) I asked the question in StackOverflow and in a few minutes jonrsharpe kindly pointed out the source of the randomness.
[Read More]