CocoaDev

Edit AllPages

Credit where credit is due: This is MichaelMeer’s original MMRandomEnumerator class

MMRandomEnumerator.h

// MMRandomEnumerator.h // XQuizIt

// Created by Michael Meer on Thu Oct 31 2002. // Copyright (c) 2002 Michael Meer. All rights reserved.

#import <Cocoa/Cocoa.h>

@interface MMRandomEnumerator: NSObject { NSMutableArray *array; int currentIndex; }

#pragma mark ��� INITIALIZATION ���

#pragma mark ��� ACCESSORS ���

@end

MMRandomEnumerator.m:

// MMRandomEnumerator.m // Shuffle the order of table entries or other array

// Created by Michael Meer on Thu Oct 31 2002. // Copyright (c) 2002 Michael Meer. All rights reserved.

#import “MMRandomEnumerator.h”

@implementation MMRandomEnumerator

#pragma mark ��� INITIALIZATION ���

#pragma mark ��� ACCESSORS ���

@end