using System.Collections.Generic;
using Polly.Contrib.WaitAndRetry;
public static void Main()
var firstDelay = TimeSpan.FromMilliseconds(75);
var delays = Backoff.DecorrelatedJitterBackoffV2(
medianFirstRetryDelay: firstDelay,
foreach (var delay in delays)
retryDelay += delay.TotalSeconds;
totalDelay += delay.TotalSeconds;
Console.Write($"\t{delay}");
Console.WriteLine($"\nTotal delay: {totalDelay}");