HOMELv024 [1, 2, 3].sample の挙動はどれか。 2026年1月24日 sampleはランダムに要素を1つ返す 10.to_i(2) の結果はどれか。 [1, 2, 3].shuffle の挙動はどれか。