User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
algorithm:fisher-yates_shuffle [2014/07/05 22:40]
will
algorithm:fisher-yates_shuffle [2015/02/02 08:28] (current)
Line 1: Line 1:
-====== Fisher-Yates ​Shuffle ​====== +======= λ Fisher-Yates ​shuffle ​======
-[algorithm Fisher-Yates shuffle]+
  
-====== Algorithm ======+<​nowiki>​ 
 +======= Algorithm ​=======
 <syntax js> <syntax js>
 function shuffle(a) { function shuffle(a) {
Line 14: Line 14:
 </​syntax>​ </​syntax>​
  
-====== Support ======+======= Support ​=======
 <syntax js> <syntax js>
 function swap(a, i, j) { function swap(a, i, j) {
Line 24: Line 24:
 </​syntax>​ </​syntax>​
  
-====== Options ======+======= Tests ======= 
 +<syntax js> 
 +</​syntax>​ 
 + 
 +======= Options ​=======
 <syntax js> <syntax js>
 { {
 +    "​title":"​Fisher-Yates shuffle",​
     "​height":"​270px"​     "​height":"​270px"​
 } }
 </​syntax>​ </​syntax>​
  
-====== Visualisation ======+======= Visualisation ​=======
 <syntax html> <syntax html>
 <​html>​ <​html>​
Line 121: Line 126:
 </​html>​ </​html>​
 </​syntax>​ </​syntax>​
 +</​nowiki>​
algorithm/fisher-yates_shuffle.1404625240.txt.gz · Last modified: 2015/02/02 08:23 (external edit)