What is the period of the PRBS signal used in the randi() function?

조회 수: 4 (최근 30일)
Kaitlyn Morgan
Kaitlyn Morgan 2018년 4월 20일
답변: Guillaume 2018년 4월 20일
I cannot find information on the PRBS seed used in the randi() function. How can I find the period of the seed used to generate random numbers or how long it takes til the signal repeats i.e. 2^31-1 or 2^15-1?

채택된 답변

Guillaume
Guillaume 2018년 4월 20일

As documented the default random number generator is Mersenne Twister which according to wikipedia has a period 2^19937 − 1. I'm sure you can do a search with your favorite search engine for the other number generators.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by