Excellent - thanks! Each environment seems to have nuances, but I should have tried this google approach - glad to see it is well indexed. The history examples are perfect.
I looked at the DYI API also - can it handle a parameter for choosing a particular output, as in the multiple-independent-outputs-example? Like the individual buttons do, using "update(out1)", "update(out2)", etc.? I'm thinking of invoking this in Tabletop Simulator's ingame tablet, and it has an earlier version of chromium that doesn't look like it supports the generator URLs directly, so might use an API versus trying to transpile.
Thanks for these solutions - clearly I have a lot to learn about Perchance, and some of these techniques will be helpful with some things I want to do in the future. I just discovered Perchance within the last week and really finding it useful for some tools for gaming.
I came up with this solution after posting the question - I created a "showhead" and "showtail" variable and set them to 0 or 1 based on my input field value, then tagged just the first and last list entries with "conditional odds" based on that value - like