How can I get the sourcecode for rand() (C++)?

后端 未结 6 1503
春和景丽
春和景丽 2020-12-31 11:01

I\'m new to programming.

I want to know exactly what rand() does.

Searching only yields examples on its usage. But none explain each step of how the function

6条回答
  •  粉色の甜心
    2020-12-31 11:28

    I guess, THIS is what you are looking for. It contains the detailed explanation of random function, and simple C program to understand the algo.

    Edit:

    You should check THIS as well. A possible duplicate.

提交回复
热议问题