Knuth shuffle: Difference between revisions
m
→{{header|FutureBasic}}
Line 2,177:
void local fn KnuthShuffle( mutArr as CFMutableArrayRef )
end fn
Line 2,189:
CFMutableArrayRef mutArr
mutArr = fn
▲mutArr = fn MutableArrayWithObjects( @0, @1, @2, @3, @4, @5, @6, @7, @8, @9 )
NSLog( @"Before shuffle: %@", fn ArrayComponentsJoinedByString( mutArr, @"" ) )
fn KnuthShuffle( mutArr )
|