Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

add(imports/table): Added a table.shuffle function to shuffle a table.#718

Merged
thelindat merged 1 commit intooverextended:masterfrom
SlyyCode:slyy
Mar 7, 2025
Merged

add(imports/table): Added a table.shuffle function to shuffle a table.#718
thelindat merged 1 commit intooverextended:masterfrom
SlyyCode:slyy

Conversation

@SlyyCode
Copy link
Contributor

@SlyyCode SlyyCode commented Mar 4, 2025

I found it useful to create a function to randomly shuffle a table, so I created it.

Example of use:

tbl = {1, 2, 3, 4, 5}
lib.table.shuffle(tbl)

Table is now mixed

@SlyyCode SlyyCode changed the title Added a table.shuffle function to shuffle a table. add(imports/table) Added a table.shuffle function to shuffle a table. Mar 4, 2025
@SlyyCode SlyyCode changed the title add(imports/table) Added a table.shuffle function to shuffle a table. add(imports/table): Added a table.shuffle function to shuffle a table. Mar 4, 2025
@thelindat thelindat merged commit cf5423e into overextended:master Mar 7, 2025
ItzMuri added a commit to ItzMuri/ox_lib that referenced this pull request Mar 7, 2025
Khatrie pushed a commit to Khatrie/ox_lib that referenced this pull request Mar 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants