Shared

RandomValueWithNoRepetition

Function to generate a random value via given function that creates the value and the already occupied values

function HRLib.RandomValueWithNoRepetition(
    values: any[],
    createRandomValue: fun(): any
): any randomValue

Parameters description

  • values - the occupied values

  • createRandomValue - the function to trigger to get the value (must return value)

Return description

  • randomValue - the random value, created by the createRandomValue function

Last updated