Код: Выделить всё
using System;
namespace Pcg32__algorithm
{
public class Pcg32
{
private const ulong N = 6364136223846793005;
private ulong state = 0x853c49e6748fea9b;
private ulong inc = 0xda3e39cb94b95bdb;
public uint NextInt()
{
ulong old = state;
state = old * N + inc;
uint shifted = (uint)(((old >> 18) ^ old) >> 27);
uint rot = (uint)(old >> 59);
return (shifted >> (int)rot) | (shifted 27);
uint rot = (uint)(old >> 59);
return (shifted >> (int)rot) | (shifted
Подробнее здесь: [url]https://stackoverflow.com/questions/79457562/class-to-structure-conversion[/url]