void function ( Object [ ] arg0 ) { int loc0 = arg0 . length ; for ( int loc1 = 0 ; loc1 < loc0 ; loc1 ++ ) { int loc2 = loc1 + ( int ) ( Math . random ( ) * ( loc0 - loc1 ) ) ; Object loc3 = arg0 [ loc2 ] ; arg0 [ loc2 ] = arg0 [ loc1 ] ; arg0 [ loc1 ] = loc3 ; } }
rearranges an array of objects in uniformly random order under the assumption that math.random generates independent and uniformly distributed numbers between 0 and 1 . concode_field_sep PlaceHolder placeHolder concode_field_sep void main