Professional Documents
Culture Documents
Colorwheel
Colorwheel
Colorwheel
myfirstapps;
import android.graphics.Color;
import java.util.Random;
/**
* Created by loqo on 6/12/2017.
*/
//Random class
Random randomGenerator = new Random();
int randomNumber = randomGenerator.nextInt(mcolors.length);
colors = mcolors[randomNumber];
int colorsAsInt = Color.parseColor(colors);
return colorsAsInt;
}
}