How do I create random hex characters?

3 次查看(过去 30 天)
How can I create 5000 random hex characters?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by