random value (newbie)
random value (newbie)
- Subject: random value (newbie)
- From: Alexander Moss <email@hidden>
- Date: Mon, 9 Jun 2003 20:17:49 +0000
Hi there!
I'm trying to figure out the correct way to get a random number. Right
now I'm trying to use:
//Calculator.m
#import "Calculator.h"
@implementation Calculator
- (long)calc_it;
{
random(void);
}
@end
Here's Calculator.m:
/* Calculator */
#import <Cocoa/Cocoa.h>
@interface Calculator : NSObject
{
}
- (long)calc_it;
@end
calc_it is called on by the Controller.m
Thanks for any pointers for this newbie!
Alexander
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.