random

@Stable
fun QrBrush.Companion.random(vararg probabilities: Pair<Float, Color>, random: Random = Random(13)): QrBrush

Random solid color picked from given probabilities. Custom source of randomness can be used.

Note: This brush uses Separate brush mode.

Example:

QrBrush.random(
0.05f to Color.Red,
1f to Color.Black
)