0

Where does the randomness of printing a set come from?

I was writing a code like that: print({i for i in input()}) And it resulted to different order of elements every time I run the code. So, what makes this randomness possible in a computer processing with logic or is it really random?

17th Oct 2017, 5:55 AM
Eren KarakuƟ
Eren KarakuƟ - avatar
2 Answers
17th Oct 2017, 6:27 AM
Dark0d3
Dark0d3 - avatar
+ 1
@Isaac Cruz Interesting, thank you for the answer.
17th Oct 2017, 4:39 PM
Eren KarakuƟ
Eren KarakuƟ - avatar