結果 : how to sample an array in python