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 » sci.math.* » sci.math

Topic: Random numbers
Replies: 64   Last Post: Dec 24, 2007 1:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
b92057@yahoo.com

Posts: 1,187
Registered: 4/18/05
Re: Random numbers
Posted: Dec 21, 2007 1:37 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Dec 21, 3:16 am, John <iamach...@gmail.com> wrote:
> Given a function that returns a random number between 1-5, write one
> that returns a random number between 1-7 for the case when it should
> be integer and for the case it can be real.


Let S be the function that generates a RN between 1 and 5. Then

T = S_1 + S_2 + ... + S_7

For the reals , RN_7 = T/7
For intgers, RN_7 = T mod 7

Bill J


Date Subject Author
12/21/07
Read Random numbers
Champ
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Marshall
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Phil Carmody
12/21/07
Read Re: Random numbers
Marshall
12/21/07
Read Re: Random numbers
briggs@encompasserve.org
12/21/07
Read Re: Random numbers
William Elliot
12/21/07
Read Re: Random numbers
quasi
12/22/07
Read Re: Random numbers
William Elliot
12/21/07
Read Re: Random numbers
Pubkeybreaker
12/21/07
Read Re: Random numbers
b92057@yahoo.com
12/22/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
simple.popeye@gmail.com
12/21/07
Read Re: Random numbers
simple.popeye@gmail.com
12/22/07
Read Re: Random numbers
quasi
12/22/07
Read Re: Random numbers
Gib Bogle
12/22/07
Read Re: Random numbers
quasi
12/21/07
Read Re: Random numbers
Marshall
12/22/07
Read Re: Random numbers
simple.popeye@gmail.com
12/22/07
Read Re: Random numbers
quasi
12/22/07
Read Re: Random numbers
simple.popeye@gmail.com
12/22/07
Read Re: Random numbers
quasi
12/22/07
Read Re: Random numbers
quasi
12/22/07
Read Re: Random numbers
quasi
12/22/07
Read Re: Random numbers
simple.popeye@gmail.com
12/22/07
Read Re: Random numbers
quasi
12/23/07
Read Re: Random numbers
simple.popeye@gmail.com
12/23/07
Read Re: Random numbers
simple.popeye@gmail.com
12/23/07
Read Re: Random numbers
simple.popeye@gmail.com
12/23/07
Read Re: Random numbers
simple.popeye@gmail.com
12/23/07
Read Re: Random numbers
simple.popeye@gmail.com
12/22/07
Read Re: Random numbers
adder
12/22/07
Read Re: Random numbers
simple.popeye@gmail.com
12/22/07
Read Re: Random numbers
Herman Rubin
12/22/07
Read Re: Random numbers
adder
12/22/07
Read Re: Random numbers
b92057@yahoo.com
12/22/07
Read Re: Random numbers
quasi
12/23/07
Read Re: Random numbers
b92057@yahoo.com
12/23/07
Read Re: Random numbers
quasi
12/23/07
Read Re: Random numbers
b92057@yahoo.com
12/24/07
Read Re: Random numbers
quasi
12/24/07
Read Re: Random numbers
quasi
12/24/07
Read Re: Random numbers
adder
12/24/07
Read Re: Random numbers
quasi
12/24/07
Read Re: Random numbers
adder
12/24/07
Read Re: Random numbers
b92057@yahoo.com

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-2017. All Rights Reserved.