Ok well here is an answer which works and although your question is slightly vague I think I got what you wanted.
So the difficulty is finding the index of the words and then choosing a random one of those. This means we can't just use find and replace as we only want to replace one.
In this answer I first find the index of the occurrence of each, then put these indexes into an array before randomly picking on out. I then use this index along with the length of the word to find and replace the word:
NSString * string=[NSString stringWithFormat:@"i want to work out for the sake of good health because work is a best way to make you physically fit and work also makes you able to do your best in your job."];
NSString * word = @"work";
NSMutableArray * indexes = [NSMutableArray new];
NSRange searchRange = NSMakeRange(0, string.length);
NSRange foundRange;
// This function loops through and finds the index of the word
while (searchRange.location < string.length) {
searchRange.length = string.length - searchRange.location;
foundRange = [string rangeOfString:word options:nil range:searchRange];
if (foundRange.location != NSNotFound) {
// Add the index to the array
[indexes addObject:[NSNumber numberWithInteger:foundRange.location]];
// found an occurrence of the substring! do stuff here
searchRange.location = foundRange.location+foundRange.length;
} else {
// no more substring to find
break;
}
}
// Calculate the random index we'll use
NSUInteger randomIndex = arc4random() % [indexes count];
NSInteger stringIndex = [indexes[randomIndex] integerValue];
NSUInteger rangeIntStart = stringIndex;
NSUInteger rangeIntFinish = word.length + 1;
NSString * result = [string stringByReplacingCharactersInRange:NSMakeRange(rangeIntStart, rangeIntFinish) withString:@""];
NSLog(@"%@",result);
Hopefully this will be a more complete answer for anyone looking in the future for this question.
I can see in the comments you might have already found an answer, if you have then either add it and answer you question or accept another answer which answers the question to allow others to benefit from what you have worked out.