Source code of random() function in Objective-C

86 Views Asked by At

I would like to ask if anyone of you knows where can I find the source code of random() function from Objective-C?

I found arc4random() code here, but cannot find simple random().

1

There are 1 best solutions below

0
trungduc On BEST ANSWER

Take a look at below link. This is implementation file for random function.

https://opensource.apple.com/source/Libc/Libc-997.90.3/stdlib/FreeBSD/random.c.auto.html