Hey i wanted to shuffle my datatable containing questions so they wont be in the same order every time i start but using shuffle doesn’t seem to work? When i shuffle it some questions disappear.
i have my datatable as question 1,2,3,4,5,6,7,8,9,10 and i want the order to change each time start again so it will be 5,4,7,8,2,1,9,3,6,10,9 and so on.
You need to shuffle the Data Table Array you made not the output of the data table node (as far as I know it’s not possible to shuffle data table asset)
aren’t there any other ways to change the order in the array?
something with the random integer in range where i put the max in and get a random index between that and the max. i just need to figure out a way to sort out the ones i’ve already used so if it chose 5 it wont choose that index again.
Well… promote to variable once and then when you need it, shuffle. After the question has been selected you remove the index from the Data Table Array variable.
i did your exact setup it doesn’t seem to remove the index it might remove a index but not the right one because it makes it so i get the same questions more and more
Promote your data table to variable once
then you can shuffle it before every question if you like or right after you promote it to a variable. You can always select the index 0 from that array because you have shuffled it.