Garry's Mod Wiki

Revision Difference

table.Shuffle#551741

<function name="Shuffle" parent="table" type="libraryfunc"> <description> Performs an inline [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle) on the table in `O(n)` time </description> <realm>Shared and Menu</realm> <added>2021.12.15</added> <file line="175-L185">lua/includes/extensions/table.lua</file> <file line="183-L189">lua/includes/extensions/table.lua</file> <args> <arg name="target" type="table">The table to shuffle.</arg> </args> </function>