FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
Random selection in NSArray objects. More...
#import <NSArray.h>
Instance Methods | |
(id) | - randomObject |
Returns one of the objects in the array, or nil if the array contains no objects. More... | |
(NSArray *) | - randomObjectsOfCount: |
Returns an array of random objects of given number in the array without duplication. More... | |
(NSArray *) | - shuffledArray |
Returns a new shuffled array from the array;. More... | |
Random selection in NSArray objects.
- (id) randomObject |
Returns one of the objects in the array, or nil if the array contains no objects.
- (NSArray *) randomObjectsOfCount: | (NSUInteger) | count |
Returns an array of random objects of given number in the array without duplication.
count | A number of items to select. |
- (NSArray *) shuffledArray |
Returns a new shuffled array from the array;.