next up previous contents index
Next: 12.1.1 create: Create a Up: 12 Miscellaneous OSKit Interfaces Previous: 12 Miscellaneous OSKit Interfaces

12.1 oskit_random: Interface for random number generators

 

The oskit_random COM interface provides a simple encapsulation for pseudo-random number generators. The interface is based on the common C library functions random and srandom. The interface inherits from oskit_iunknown and provides the following additional methods:

random
Produce a pseudo-random number in the range 0 to tex2html_wrap_inline37873 .
srandom
Seed the random number generator.

The oskit_random_create function can be used to create instances of the oskit_random interface.





Utah Flux Research Group