Cannot use random in python(atom) in rhino 5 mac

Thank you very much! as you mentioned the hashlib, I found these articles as others met. I copy the module from rhino 6 in windows to Mac. It works!