Created
August 4, 2024 16:08
-
-
Save Lusamine/90f7ab3cbdf6733002f7c7c13cba4034 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
// Initial state | |
ulong s0 = 0x0123456789ABCDEF; | |
ulong s1 = 0x0123456789ABCDEF; | |
// Set this for how far you want to search. | |
int maxAdvance = 200; | |
Console.WriteLine("Adv | s0 | s1 | HL | Reg"); | |
Console.WriteLine("----+------------------+------------------+-----+----"); | |
var rng = new Xoroshiro128Plus(s0, s1); | |
for (int advances = 0; advances < maxAdvance; advances++) | |
{ | |
GetStateWattTrader(advances, rng); | |
rng.Next(); | |
} | |
} | |
// You can define other methods, fields, classes and namespaces here | |
private void GetStateWattTrader(int advance, Xoroshiro128Plus rng) | |
{ | |
var (s0, s1) = rng.GetState(); | |
var output = $"{advance:000} | {s0:x16} | {s1:x16} | "; | |
var highlight = rng.NextInt(1000); | |
var regular = rng.NextInt(9); | |
output += $"{highlight, 3} | {regular}"; | |
// Add your filters here. | |
//if (highlight != 827) | |
// return; | |
Console.WriteLine(output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup is:
PKHeX.Core
to second tab,Recommended LINQPad settings so output is monospaced:
Use this sheet to figure out what you need to roll under Min/Max to get your desired item:
https://docs.google.com/spreadsheets/u/0/d/1pNYtCJKRh_efX9LvzjCiA-0n2lGSFnVmSWwmPzgSOMw/htmlview