Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

rand() function

2005-05-03 by varuzhandanielyan

The standard rand() function of many compilers (Keil, etc.) return
pseudorandom integer in range 0 to 32767.
1. Is the period of such pseudorandom generators equal to 2^15, or it is
more?
2. Who has an efficient algorithm for 2^31 period rand() function? Both  
assembler and C realizations are of interest.

Thank you,
Varuzhan

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.