public class Class1 implements Interface1 {
public final Object[] Generator(int min, int max, int kol) {
Object[] MasO = new Object[kol];
double[] MasD = new double[kol];
Random R = new Random();
for (int i = 0; i < kol; i++)
{
MasD[i] = R.nextDouble();
}
Arrays.sort(MasD);
System.arraycopy(MasD, 0, MasO, 0, kol);
// MasO = MasD.clone();
return MasO;
}