First of all, I know that I should never try to describe in this matter, and this is purely hypothetical, so please do not yell at me.
Python collections do not support ordering, as they are hash maps without part of the map. So I was wondering how well they randomize things. This is clearly not enough for cryptography and will not work on ints (because the Python hash is an identifier in ints), but how good is it for games, etc.?
It makes sense that it will work decently, because its modding is on a hash, but I'm not quite sure how good this hash is and how well it will work for randomization.
PS: Sets will always return the same shuffle for the same values, but you can assume that this is not a problem.
source
share