Blum Blum Shub Algorithm for PRNG

A Pseudo-Random Number Generator Using Blum Blum Shub Algorithm


Updated 3 Apr 2014

View License

MATLAB Script to implement the Blum Blum
Shub Algorithm for PRNG. The seed x0 should be an integer that is
co-prime to M (i.e. p and q are not factors of x0) and not 1 or 0.

Cite As

Dr Raveendranathan K C (2023). Blum Blum Shub Algorithm for PRNG (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Random Number Generation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes