home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / Random2.0 / Source / StandardEngine.h < prev    next >
Encoding:
Text File  |  1992-04-09  |  584 b   |  41 lines

  1. //
  2. // StandardEngine
  3. //
  4. // This is an Objective-C class which uses
  5. // the Random architecture from
  6. // Contemporary Design Studios.
  7. //
  8. // The StandardEngine class is a wrapper for the standard C/UNIX
  9. // rand() and srand() functions supplied on the NeXT computer.
  10. //
  11. // Copyright (C) 1992 Contemporary Design Studios. All rights reserved.
  12. //
  13.  
  14.  
  15. #import "RandomEngine.h"
  16.  
  17.  
  18. @interface StandardEngine : RandomEngine
  19.  
  20.  
  21. {
  22.     ulong    last;
  23. }
  24.  
  25.  
  26. + (int)unit;
  27.  
  28. - init;
  29.  
  30. - makeRandom:(uchar *)storage;
  31.  
  32. - read:(NXTypedStream *)stream;
  33. - write:(NXTypedStream *)stream;
  34.  
  35.  
  36. @end
  37.  
  38.  
  39. //
  40. // End of file.
  41. //