How Does The Random Function Work In Python