Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how can generate random integer numbers?
Replies: 8   Last Post: Mar 19, 2013 6:02 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Subhasri krishnan

Posts: 5
Registered: 11/16/05
Re: how can generate random integer numbers?
Posted: Nov 17, 2005 5:23 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


emanuele wrote:
> Hi all
> how can generate random integer numbers?
> Thanks in advantage Emanuele


Hi,
You can use rand(uniform distribution) or randn(normal distribution) to
make a series. Do something like rand * 10 or some number and round
off. you can do a rounding off like if between 9 and 10 then 9 or
something like that. you can do the tweaking with some good round
operators.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.