Skip to content

Instantly share code, notes, and snippets.

@tcha-tcho
Created August 3, 2010 00:25
Show Gist options
  • Save tcha-tcho/505577 to your computer and use it in GitHub Desktop.
Save tcha-tcho/505577 to your computer and use it in GitHub Desktop.
"the uggglyest thing i ever build to sort random... but thats it
let l:new_list = []
for item in g:kata_1
let l:indx = Urndm(0,5)
let l:item_to_move = deepcopy(g:kata_1[l:indx])
call remove(g:kata_1, l:indx)
call add(g:kata_1, l:item_to_move)
endfor
g:kata_1 = deepcopy(l:new_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment