v1.3.1 - siehe Release Notes
This commit is contained in:
@@ -40,7 +40,7 @@ function get_weighted_random_color($conn)
|
||||
$color_pool = [];
|
||||
|
||||
foreach ($colors as $color) {
|
||||
$weight = $max_usage - $color['usage'] + 1; // Mindestgewicht = 1
|
||||
$weight = ($max_usage - $color['usage'] + 1) ** 2;
|
||||
for ($i = 0; $i < $weight; $i++) {
|
||||
$color_pool[] = $color['id'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user