diff --git a/android/core/src/main/java/ai/djl/android/core/BitmapImageFactory.java b/android/core/src/main/java/ai/djl/android/core/BitmapImageFactory.java index 7017370dd1b..c208b6ae431 100644 --- a/android/core/src/main/java/ai/djl/android/core/BitmapImageFactory.java +++ b/android/core/src/main/java/ai/djl/android/core/BitmapImageFactory.java @@ -327,7 +327,7 @@ public void drawImage(Image overlay, boolean resize) { private int randomColor() { return Color.rgb( - RandomUtils.nextInt(255), RandomUtils.nextInt(255), RandomUtils.nextInt(255)); + RandomUtils.nextInt(256), RandomUtils.nextInt(256), RandomUtils.nextInt(256)); } private int darker(int color) {