swrand.h 533 B

123456789101112131415161718192021222324
  1. /************************************************************************
  2. * AUTHOR: NiuJiuRu
  3. * FILENAME: swrand.h
  4. * DESCRIPTION: 随机数产生函数
  5. * NOTE:
  6. * HISTORY:
  7. * 1, [2010-08-23] created by NiuJiuRu
  8. ************************************************************************/
  9. #ifndef __SWRAND_H__
  10. #define __SWRAND_H__
  11. #ifdef __cplusplus
  12. extern "C"
  13. {
  14. #endif
  15. /* 产生一个特定范围内的随机数, 并返回结果 */
  16. unsigned int xrand32(unsigned int range);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif /* __SWRAND_H__ */