The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

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

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.