How do I create random hex characters?

3 views (last 30 days)
Javadkhan Gurbanov
Javadkhan Gurbanov on 15 Oct 2020
Answered: Ameer Hamza on 15 Oct 2020
How can I create 5000 random hex characters?

Answers (1)

Ameer Hamza
Ameer Hamza on 15 Oct 2020
This is one way
x = dec2hex(randi([1 1000], 1, 5000));

Categories

Find more on Random Number Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!