Horje
generate random light color android Code Example
generate random dark colors programatically in android
Random rnd = new Random();
paint.setARGB(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));
generate random light color android
final Random mRandom = new Random(System.currentTimeMillis());

public int generateRandomColor() {
    // This is the base color which will be mixed with the generated one
    final int baseColor = Color.WHITE;

    final int baseRed = Color.red(baseColor);
    final int baseGreen = Color.green(baseColor);
    final int baseBlue = Color.blue(baseColor);

    final int red = (baseRed + mRandom.nextInt(256)) / 2;
    final int green = (baseGreen + mRandom.nextInt(256)) / 2;
    final int blue = (baseBlue + mRandom.nextInt(256)) / 2;

    return Color.rgb(red, green, blue);
}




Csharp

Related
aspx receive variable from url Code Example aspx receive variable from url Code Example
reflection static method c# Code Example reflection static method c# Code Example
how to declare two int variables in only one line c# Code Example how to declare two int variables in only one line c# Code Example
https port Code Example https port Code Example
viewstate in asp.net demo \ Code Example viewstate in asp.net demo \ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11