Keil Logo Arm Logo

_rand_r()

_rand_r()

Defined in stdlib.h, this is a reentrant version of the rand() function.

Show/hideSyntax

int __rand_r(struct _rand_state * buffer);

where:

buffer

is a pointer to a user-supplied buffer storing the state of the random number generator.

Show/hideUsage

This function enables you to explicitly supply your own buffer in thread-local storage.

Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0589B
Non-ConfidentialID062912

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.