Javascript Randomly Select From Array Python Example Problem