Upload files to "/"

This commit is contained in:
2026-07-24 15:42:19 +00:00
commit f305cecd99
5 changed files with 386 additions and 0 deletions

35
Random.cs Normal file
View File

@@ -0,0 +1,35 @@
using System.Text;
namespace Stella
{
public static class Random
{
private static readonly System.Random _random = new();
public static int RandomInt(int range0, int range1)
{
int result = _random.Next(range0, range1);
return result;
}
public static long RandomLong(long range0, long range1)
{
long result = _random.NextInt64(range0, range1);
return result;
}
public static string RandomString(int length)
{
const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:',.<>?/~`";
StringBuilder sb = new();
for (int i = 0; i < length; i++)
{
int index = _random.Next(chars.Length);
sb.Append(chars[index]);
}
return sb.ToString();
}
}
}