<?php
namespace App\Support;
final class RetryBackoff {public static function exponential(int $attempts=6,int $base=10,int $cap=3600):array{$out=[];for($i=0;$i<$attempts;$i++){$max=min($cap,$base*(2**$i));$out[]=random_int((int)max(1,$max/2),$max);}return $out;}}
