commit c64818f3a8f6322c20379f804b883e4d2f110146
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Wed Dec 10 03:23:36 2025 +0100

    fix for wrong scrambling of bandaged cuboids with layers not equal to each other.

diff --git a/src/main/java/org/distorted/bandaged/BandagedActivity.java b/src/main/java/org/distorted/bandaged/BandagedActivity.java
index 00f69a53..88359e44 100644
--- a/src/main/java/org/distorted/bandaged/BandagedActivity.java
+++ b/src/main/java/org/distorted/bandaged/BandagedActivity.java
@@ -12,6 +12,7 @@ package org.distorted.bandaged;
 import static android.view.View.LAYOUT_DIRECTION_RTL;
 
 import java.io.InputStream;
+import java.util.Random;
 
 import android.content.Intent;
 import android.content.SharedPreferences;
@@ -274,7 +275,14 @@ public class BandagedActivity extends BaseActivity
       Intent intent = new Intent(this, PlayActivity.class);
       intent.putExtra("level", -1);
       intent.putExtra("name", name);
-      intent.putExtra("scrambles", NUM_SCRAMBLES);
+
+      // some small objects (2x2x1 cuboid) might have a tight scramble loop (for example the 2x2x1
+      // always comes back to a solved state every 6 moves). So If we always to NUM_SCRAMBLES moves,
+      // we will always end up in the same position. Thus: vary this a bit.
+      Random rnd = new Random();
+      int seed = rnd.nextInt(6);
+      intent.putExtra("scrambles", NUM_SCRAMBLES-seed);
+
       intent.putExtra("local", true);
       intent.putExtra("ordinal", 0);
       startActivity(intent);
