Ask your own question, for FREE!
Computer Science 12 Online
OpenStudy (anonymous):

how can i get a random number that has 10 digits in it using the random function. (The default number is 12, not sure how to change it to 10)

OpenStudy (anonymous):

divide by 100

OpenStudy (anonymous):

(assuming the random numbers are uniformly distributed integers)

OpenStudy (anonymous):

Which language are you using?

OpenStudy (anonymous):

im using muPAD

OpenStudy (anonymous):

so do the numbers go from 0 to 10^12-1? In that case you could just divide by 100 or use modulo 10^10.

OpenStudy (anonymous):

or you could just use the random function that takes the appropriate parameter; I'll leave that as an exercise: http://www.mathworks.de/help/toolbox/mupad/stdlib/random.html

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!