Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!ucsfcgl!kneller From: kneller@cgl.ucsf.edu (Don Kneller) Newsgroups: comp.graphics Subject: random points on a sphere Message-ID: <13940@cgl.ucsf.EDU> Date: 7 May 90 23:08:52 GMT Sender: daemon@cgl.ucsf.edu Distribution: comp Lines: 13 This has been a long running discussion, and I may have missed a posted solution, but I believe you can use: 1) theta = random number between -180 and 180 2) phi = arccos(random number between -1 and 1) The 2) ensures phi near 0 and pi are selected rarely, while values near pi/2 are relatively common. ----- Don Kneller UUCP: ...ucbvax!ucsfcgl!kneller INTERNET: kneller@cgl.ucsf.edu