C Random Number Generation (pure C code, no libraries or functions)

后端 未结 7 1188
时光取名叫无心
时光取名叫无心 2021-01-21 03:11

I need to generate some random numbers in C for testing and debugging the system. The system is a custom hardware (SoC) with a limited set of functions so I can only use basic m

相关标签:
7条回答
  • 2021-01-21 03:47

    You may want to look for Mersenne Twister. There are lots of algorithms of higher quality. A good article with an overview you find here:

    http://en.wikipedia.org/wiki/Pseudorandom_number_generator

    0 讨论(0)
提交回复
热议问题