menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Anyone have an algorithm to randomly sort a table?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Anyone have an algorithm to randomly sort a table?
Laedere
Join Date: 2013-06-17
Post Count: 23630
#221349717
Friday, July 14, 2017 11:46 PM GMT
Title
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Quasiduck
Join Date: 2008-09-28
Post Count: 2437
#221350925
Friday, July 14, 2017 11:57 PM GMT
math.randomseed(os.time()); math.random() t = {1,2,3,4,5} for i = 1, #t do local n = math.random(1,#t) t[i], t[n] = t[n], t[i] end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right