You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Yuu,
I wonder if we can generate an identical result with MarkovJunior C#.
So I translated the C# (or dotnet) random function into TypeScript.
After a week stabilizing, I got the perfect result.
That was a good news, right? I think so.
THe bad news is, I did it in very old commit of your MarkovJuniorWeb: while it has no webassembly at all.
So here I send you only file that declare the random function.
(if you want to try, here is my working branch)
YOu might ask, why this guy didn't send a pool request?
Well, There is another argue (beside it written in old commit),
That is because my usage of this new random is dirty.
For example, it is still called as rng.NextDouble, like as the C# original code; which it might be better written as random.nextDouble as more convenient for JS users.
(as same as the .Next() shall be written as .next() )
(and I let it be your todo, perhaps, for fun?).
However, I guarantee that is will give a verbatim result in JS/TypeScript, compared to the one generated by C#.
Oh, I forgot to mention.. How I am sure that it will generates an identical result?
answer: by allow user to manually input the seed.
So, let say we give the MarkovJuniorC# : <model name="BasicKey" seed="1234567" />
then we input that same seed into the MarkovJunioWeb.
That is just that is that.
Hi Yuu,
I wonder if we can generate an identical result with MarkovJunior C#.
So I translated the C# (or dotnet) random function into TypeScript.
After a week stabilizing, I got the perfect result.
That was a good news, right? I think so.
THe bad news is, I did it in very old commit of your MarkovJuniorWeb: while it has no webassembly at all.
So here I send you only file that declare the random function.
(if you want to try, here is my working branch)
Okay, here is the file: https://github.com/x2nie/MarkovJuniorWeb/blob/x2nie-nowasm2/src/random.ts
The text was updated successfully, but these errors were encountered: