Here you can find the source of findMaxDiff(byte[] rand, byte[] newRand)
public static int findMaxDiff(byte[] rand, byte[] newRand)
//package com.java2s; //License from project: Open Source License public class Main { public static int findMaxDiff(byte[] rand, byte[] newRand) { int maxDiff = 0; for (int i = 0; i < rand.length; i++) { int diff = Math.abs(rand[i] - newRand[i]); if (diff > maxDiff) maxDiff = diff;//from w w w. jav a 2s.c om } return maxDiff; } }