Based on the hamming distance ”similarity”, but with added randomness for extra fun. The similarity between coloring vectors x and y is calculated as before, but with an extra factor R.
1 | similarity.kui(x1, x2)
|
1 - R * (d / length)
Where d is the number of positions with different colors between x and y, and R is a random uniform number between 0 and 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.