List Commands Library for 50g
|
03-16-2018, 09:47 PM
(This post was last modified: 03-16-2018 09:49 PM by pier4r.)
Post: #280
|
|||
|
|||
RE: List Commands Library for 50g
I do not know if LSHUF is changed much since 1.1.0d (that is in one of my 50g, as I hadn't the need to update it), but it seems to behave a bit differently than random picks.
Setup. You have a list with elements { 1 2 3 4 } You want to pick elements from this list until they match a certain combination. Say { 1 2 4 3 1} If I use (this in a loop) Code:
vs Code:
with a check to stop if trying more than listElementsSize goalSize ^ 2 * attempts, for the test done by me LSHUF is never successful, while the approach with rand return a result in approximately (over a lot of repetitions) listElementsSize goalSize ^ 0.3 * attempts. A known issue? Maybe LSHUFdoesn't really work with small lists? Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)