I'm translating some Delphi code into c# code when I ran into this. I don't have an environment setup for Delphi so I can't test it myself.

Delphi:

```
RandSeed := var1;
Result := Random($FF);

```

c#:

```
Random RandSeed = new Random(var1);
Result = RandSeed.Next(255);

```

Would these put the same value in Result? If not, any ideas on a way to do so?