Code example for Random

Methods: nextInt

0
		throw new UnsupportedOperationException(
				"ColorAnimationDrawable doesn't support " + message);
	} 
 
	private static int randomColor() { 
		return mRandom.nextInt() & 0x00FFFFFF;
	} 
 
	private static int evaluate(float fraction, int startValue, int endValue) {
		return (int) (startValue + fraction * (endValue - startValue));
	} 
 
	private final Runnable mUpdater = new Runnable() {
		@Override 
		public void run() { 
			long now = AnimationUtils.currentAnimationTimeMillis(); 
			long duration = now - mStartTime; 
			if (duration >= ANIMATION_DURATION) { 
				mStartColor = mEndColor; 
				mEndColor = randomColor();