//
//  CRRandomGenerator.h
//  CRKit
//
//  Created by Yaroslav Glushchenko on 3/18/11.
//  Copyright 2011 Corner-A. All rights reserved.
//

//////////////////////////////////////////////////////////////////////
// Random number generator
//////////////////////////////////////////////////////////////////////
@interface CRRandomGenerator : NSObject
{
	int	nLast;
}

+ (CRRandomGenerator *)generatorWithSeed:(int)seed;

- (int)getInt:(int)nMax;
- (int)getIntMin:(int)nMin max:(int)nMax;

- (float)getFloat:(float)fMax;
- (float)getFloatMin:(float)fMin max:(float)fMax;

@end