let rand = new System.Random() let swap x y (a: _ array) = let tmp = a.[x] a.[x] <- a.[y] a.[y] <- tmp // shuffle an array (in-place) let shuffle a ...
確定! 回上一頁