I have a NSMutableArray called putNumberUsed. It contains the following objects @\"blah1,@\"blah2\",@\"blah3\",@\"blah4\". I want to shuffle these objects randomly so for ex
From iOS 10.x++ new concept of shuffle array is given by Apple,
You need to import the framework :
ObjeC
#import NSArray *shuffledArray = [yourArray shuffledArray];
Swift
import GameplayKit let shuffledArray = yourArray.shuffled()