CheckRandomRowStringList()

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

Post Reply
lancer
Posts: 2963
Joined: Tue Oct 18, 2005 8:56 am

CheckRandomRowStringList()

Post by lancer »

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

Post Reply

Return to “Mods and Scenarios”