0

Essentially I will have a list of N elements. I want to set up a list randomizer where each element in the list has a probability of appearing first or at the top of the list.

For example, if I have 5 elements in a list, I to setup a randomizer where one element has a 25% chance of appearing first and the other elements have an equal probability(18.75%) of appearing first in the list

  • What have you tried so far? – Taxel Nov 22 '21 at 14:19
  • I read another stackoverflow thread about randomizers with weighted proabailities but those involve selecting an item and not randomizing the entire list. I am a very new self learning developer so the main things that I tried were basic randomizers such as the one here: https://stackoverflow.com/questions/69335458/weighted-probability-random-choice-array – sgm2000 Nov 22 '21 at 14:50

0 Answers0