Keil Logo


4.20 _rand_r()

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


int _rand_r(struct _rand_state * buffer);
is a pointer to a user-supplied buffer storing the state of the random number generator.


This function enables you to explicitly supply your own buffer in thread-local storage.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.