MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Creating a Random Function to Select an Irrational

The good news is, 100% of real numbers are irrational. That is, the odds  
of selecting a real at random and getting a rational is precisely zero.

The bad news is, machine-precision (and arbitrary precision) real numbers  
are 100%, unanimously rational. So are their sums, differences, products,  
and ratios.

(The good and bad news may seem contradictory, but they are not.)

So, the only way to get irrational numbers in Mathematica is using symbols  
(Pi, E, for instance) and expressions you know are irrational, such as  
Sqrt[2]. Your link shows a few other ways. But it's hard to call creating  
one of these "random".

You could make a long list of irrational numbers and randomly sample them,  
perhaps adding several together... but I don't see what you could prove or  
accomplish, with such a procedure.


On Fri, 31 Jul 2009 04:57:40 -0500, BenT <brtubb at> wrote:

> Although Mathematica has built-in functiona to obtain random integers  
> and real
> numbers, I need to select a random irrational number. At this
> webpage,
> several definitions are given for known conditions to create
> irrational numbers, such as
> Numbers of the form n^(1/m) are irrational unless n is the mth power
> of an integer.
> Can anyone define a function to allow a similar capability as Random[]
> in selecting a "member" from the above defined "set" of values, or any
> other of the definitions listed on the same webpage?

DrMajorBob at

  • Prev by Date: Re: Finding the Position of Elements in a List that
  • Next by Date: Re: Help with concatenating a list with &&
  • Previous by thread: Re: Creating a Random Function to Select an Irrational
  • Next by thread: Re: Re: Creating a Random Function to Select an Irrational