Jump to content

Sorting algorithms/Bubble sort: Difference between revisions

m
Line 3,931:
if N=='' | N=="," then N=30 /*Not specified? Then use the default.*/
if datatype(seed, 'W') then call random ,,seed /*An integer? Use the seed for RANDOM.*/
icallcall gen N /*generate the array elements (items). */
call show 'before sort:' /*show the before array elements. */
$$= $ /*keep "before" copy for after the sort*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.