MathGroup Archive 1998

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

Search the Archive

Re: Some basic Help



Hi Jason, is this what you want?

RandomThales :=
  With[{x = {Random[], Random[]},
    y = {Random[], Random[]}, f = 2*Pi*Random[]},
   Polygon[{x, y, (x + y)/2 +
      1/2*norm[x - y]*{Cos[f], Sin[f]}}]]

But beware! Please check Martin Gardner, Mathematical Puzzles and
Diversions, the problem about the random chord before you jump to
conclusions.

Jrgen

-----Original Message-----
From: jason jacobson <jjacobson@MACALESTER.EDU> To:
mathgroup@smc.vnet.net
Subject: [mg12385] [mg12314] Some basic Help


>Hello!
>
>Does anyone have any suggestions for generating Random RIGHT triangles.
>I found a way to generate random triangles through the PLOT command,
>but do not know how to generate right ones.
>
>Please email me w/ help.  Thanks
>




  • Prev by Date: Re: Compile lesson
  • Next by Date: Re: Matrix manipulation
  • Prev by thread: Re: Some basic Help
  • Next by thread: latex and mathematica