Hello everyone! A few years ago I got some help with a randomizer of mine and it made it into a wonderful little tool to play around with. Link to it here!

I’ve since expanded upon it, and come into a small problem with the more I add to it: unique outputs.

There are, in total, 4 outputs I’m concerned with the most (the types). Is there any way to make it so that the code keeps track of all 4 outputs and insures they are all unique?

I’ve looked over the documentation and I think it’s a touch out of my current skillset. Thank you to anyone who takes the time to help out!

    • scarffles@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 days ago

      I did try using that but I was still getting duplicate answers. I likely wasn’t implementing it properly but I’m not sure where it was going wrong with the implementation, if that makes sense.

      • TAPgiles@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        22 days ago

        Could you just paste the code you are talking about here? I’m trying to guess at which part you are talking about but it’s very difficult. If I could see the code you are talking about I might see the issue.

          • TAPgiles@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            22 days ago

            Yes, I looked at the code at that link. There’s a lot of code though, so I don’t know which part of the code isn’t producing what you want it to produce. Hence I asked you to just paste in the specific code you’re having trouble with–not the entire page.