generate non-repeat random table cell value until done

DoguzDoguz Member Posts: 500
Does anyone know where a tutorial is to create this? I know it's a simple one, but I just can't make it simple.

Just one column of text values - say 5. Draw them out in random until complete - no repeat.

Best Answers

  • gyroscopegyroscope I am here.Posts: 6,598
    edited April 2013 Accepted Answer

    Hi @Doguz and here's yet another way...

    Basically, it's to copy the table, random row, delete that row, random row from rows-1, delete, etc., that way there's the guarantee of no repeats; and seeing as it's a copy of the table it's non-destructive. Hope you find it useful. :-)

    P.S there's some redundant attributes, I think, so just ignore those not used... (of course!)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • gyroscopegyroscope I am here.Posts: 6,598
    Accepted Answer
    Love it. Thanks Gyro
    Glad it helps. :-) It's very odd, but someone has deleted my post as well as the game file, for some reason....

    Here it is again (I'm sure you've got your copy, @Doguz so for anyone else who might need it...)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Answers

Sign In or Register to comment.