Kavita+ Overhaul & New Changelog (#3507)

This commit is contained in:
Joe Milazzo 2025-01-20 08:14:57 -06:00 committed by GitHub
parent d880c1690c
commit a5707617f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
249 changed files with 14775 additions and 2300 deletions

View file

@ -0,0 +1,18 @@
using System;
namespace API.Extensions;
public static class DayOfWeekHelper
{
private static readonly Random Rnd = new();
/// <summary>
/// Returns a random DayOfWeek value.
/// </summary>
/// <returns>A randomly selected DayOfWeek.</returns>
public static DayOfWeek Random()
{
var values = Enum.GetValues<DayOfWeek>();
return (DayOfWeek)values.GetValue(Rnd.Next(values.Length))!;
}
}