答复: JAVA每日一题01

xiaoxiao2025-12-13  5

ruby 代码: 5.times do arr=(1..49).to_a p (0..5).inject([]){|result,index| result << arr.delete_at(rand(49-index))}end result: [41, 18, 15, 43, 40, 37][18, 26, 33, 15, 16, 27][14, 44, 49, 42, 8, 20][9, 42, 30, 28, 48, 19][11, 39, 21, 14, 35, 28]
转载请注明原文地址: https://www.6miu.com/read-5040806.html

最新回复(0)