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: Generate non integer number
Replies: 4   Last Post: Mar 13, 2013 1:39 PM

Advanced Search

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

Posts: 2,359
Registered: 12/6/04
Re: Generate non integer number
Posted: Mar 13, 2013 10:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"max200790" wrote in message <khq12l$1kc$>...
> Hi,
> I would know how I can generate a non integer number with the function randi without utilizing a division or multiplication.
> Maybe we know another function which only specifying the interval give the random value as:
> Amin=0
> Amax=5
> A=......([Amin,Amax])
> A=1.954

This may skirt the issue, but you could use something like SQRT, EXP, some trig function, or any combination of them perhaps.
> Thanks

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.