Icons
Icons
#
random(exclude: list[Icons] | None = None, weights: dict[Icons, int] | None = None) -> Icons | None
#
Selects a random icon, with optional exclusions and weights.
PARAMETER | DESCRIPTION |
---|---|
exclude
|
A list of icons members to exclude from the selection. |
weights
|
A dictionary mapping icon members to their respective weights for weighted random selection. |
RETURNS | DESCRIPTION |
---|---|
Icons | None
|
A randomly selected icon, or |
Examples: