Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pseudorandom generator

Status
Not open for further replies.

vdaniel

Full Member level 4
Joined
Oct 8, 2004
Messages
204
Helped
8
Reputation
16
Reaction score
0
Trophy points
1,296
Activity points
2,157
I am looking for efficient code of a long period (about 2^31) pseudorandom generator
function for 8-bit microvontrollers.

Thanks,
Varuzhan
 

Ok, I found the solution in the book:

**broken link removed**
chapter: **broken link removed**

just took a code from the book

unsigned long idum = 0;
...
idum = 1664525L*idum + 1013904223L;

and compared the result with the book recommended sequence. It was the
same.

Varuzhan
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top