CheckRandomRowStringList()
Posted: Mon Jul 18, 2011 9:32 pm
G'day Vic,
The second parameter is documentated as 'Col used as weight'.
I'm guessing that this function is able to pick a random row in a stringlist and you can - maybe - weight the odds via a column value ?
Also if it is a random pick function how optimised is it? Eg. you have a random 1 to 100 generator function in the editor already. Does the new function use this to choose a random row - eg. If I have a stringlist of 13 records, does it keep pumping out 1d100 numbers until it hits one within the 0 to 13 range required?
The other additional stringlist functions you provided in the 2.07 upgrade are proving to be quite useful. Thanks.
Cheers,
Lancer
The second parameter is documentated as 'Col used as weight'.
I'm guessing that this function is able to pick a random row in a stringlist and you can - maybe - weight the odds via a column value ?
Also if it is a random pick function how optimised is it? Eg. you have a random 1 to 100 generator function in the editor already. Does the new function use this to choose a random row - eg. If I have a stringlist of 13 records, does it keep pumping out 1d100 numbers until it hits one within the 0 to 13 range required?
The other additional stringlist functions you provided in the 2.07 upgrade are proving to be quite useful. Thanks.
Cheers,
Lancer