News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

mixing a list in C

Started by elico1, January 16, 2020, 10:50:28 PM

Previous topic - Next topic

elico1

Hi all
in case I have a list of numbers like 1 2 3 4 5 6 7 and I need to mix this list in random to turn it to a new list
like 4 7 2 3 5 1 6 4 for example , ho is it done in C code ?
Thanks
Elico

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]