You are not logged in.
Hi,
I am working with 802.11 Ref Design and I want how to generate random numbers between 0 and MAX_BOUND. Is it possible to use rand() function and how to seed the generator in this case?
Thanks
Offline
The MicroBlaze stdlib includes a rand() function; we use this in the 802.11 ref design rand_num_slots() function, for example. The rand() function returns pseudo-random values uniformly distributed between 0 and RAND_MAX (2^31 I think). You can scale the return values as needed to realize a different range.
Offline