📖
Always Learning
Highlights
- Pro
Pinned Loading
-
Convert a Numerical Type to a binary...
Convert a Numerical Type to a binary string and pad it properly. 1string NumberToBinary<T>(T val) where T : notnull, IConvertible
2{
3try
4{
5long value = val.ToInt64(null);
-
C# Prime Sieve
C# Prime Sieve 1/*
2* Sieve of Eratosthene, C# implementation by George Corkery (github.com/gpc91)
3* Something made for fun, feel free to use without attribution
4* For more about the Sieve of Eratosthene, see this wikipedia page: https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
5*/
-
System.Random Next ulong (UInt64) ex...
System.Random Next ulong (UInt64) extension 1/// <summary>
2/// Extension methods for the <see cref="System.Random"/> class.
3/// </summary>
4public static class RandomExtensions
5{
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.