Very specific question on tables
msecchia
Member Posts: 9
How can I assemble some non-repeating data?
For example:
Column 1 has 1,2,3,5,6,7,8
Column 2 has 1,2,4,6,7,8,9
Column 3 has 2,4,5,6,7,8,9
I would like to pull out a random value from each column, without repeats.
success: 1,2,8
fail: 2,6,2
So, when I pull out values from column 2 and 3, and need to do some kind of filter on them to make sure the data I pulled out already does not match.
Can anyone point me in the right direction?
Thanks!
Answers
Loop: Until
game.value2 does not equal game.value1
Change attribute game.value2 to TableCellValue(table,2,random(1,tablerowcount(table))
Loop: Until All
game.value3 does not equal game.value2
game.value3 does not equal game.value1
Change attribute game.value3 to TableCellValue(table,3,random(1,tablerowcount(table))
bizarre. That is exactly what I have (except I have some attributes as middlemen). I'll check it again. Thanks for the reply!
This is the method I use created by @tatiang http://forums.gamesalad.com/discussion/53553/demo-randomize-table-rows
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
thanks guru- ill check that out too!