Forum Discussion
Altera_Forum
Honored Contributor
13 years agoPseudo-random Number Generator
Hi,
I have looking for a Pseudo-random number generator with some maximum linit. I know the LFSR approach but I dont know how to limit the maximum number generated by the LFSR. For example if I want to use an 8-bit LFSR with maximum limit of 200. How to limit the LFSR so that number must not exceed 200. Any link, idea or circuit will be highly appreciated Thanks Ali Umair12 Replies
- Altera_Forum
Honored Contributor
I think the scaling method is good enough for me to use in my design. Another question is, how I can add the lower limit? i.e. how can i generate a random number that should be less than 200 but greater than 50?
- Altera_Forum
Honored Contributor
Simply scale to 150 and add 50 to the result.