Dillon 0 Posted December 15, 2014 Report Share Posted December 15, 2014 Hey all, Does anyone know any way at all to randomize a table? I have 2 main pieces of data that need to be used together each loop so I have them in a table and it works great but without being able to randomize the data before use it doesn't really do what I need. Any suggestions/ideas would be appreciated. -Dillon Quote Link to post Share on other sites
UBotDev 276 Posted December 15, 2014 Report Share Posted December 15, 2014 Instead of randomizing the table randomize the order in which you access the cells....meaning that you should prepare a UBot list containing random numbers, which are representing table rows. Once you have that you just loop through a list and pull row numbers from it.... 1 Quote Link to post Share on other sites
Dillon 0 Posted December 18, 2014 Author Report Share Posted December 18, 2014 Instead of randomizing the table randomize the order in which you access the cells....meaning that you should prepare a UBot list containing random numbers, which are representing table rows. Once you have that you just loop through a list and pull row numbers from it....Perfect, thank you. Got everything working exactly as I needed. -Dillon Quote Link to post Share on other sites
UBotDev 276 Posted December 18, 2014 Report Share Posted December 18, 2014 Np, glad you figured it out. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.