mercredi 12 mai 2021

Is there a new way to shuffle an array in C++?

I am relatively new to coding (second semester of C++) and am working on a project where I need to shuffle a string array. I did a similar program in the past using random_shuffle() but have discovered that it has since been deprecated. Are there any other ways I can shuffle an array?

I'm using Xcode BTW, in case that needs to be stated.

Any help is greatly appreciated! This is my first post of many, I'm sure.

Aucun commentaire:

Enregistrer un commentaire