Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Does anyone have codes for using only numbers to make this kind of random-number visualization and not requiring a number generator?

http://demonstrations.wolfram.com/PoorStatisticalQualitiesForTheRANDURandomNumberGenerator/

http://en.wikipedia.org/wiki/Spectral_test

share|improve this question
3  
Could you explain what you mean by "using only numbers"? –  Sjoerd C. de Vries Jul 16 '13 at 5:55
add comment

1 Answer

The code used in the demonstration is like this.

Manipulate[
 Graphics3D[
  Point[pointCoordinates], 
  ViewPoint -> UserView,
   ImageSize -> {450, 400}], 
  {
  {NumPoints, 5000, "number of points"},
   {100 -> "100", 500 -> "500", 1000 -> "1000", 2500 -> "2500", 
   5000 -> "5000"}
  }, 
  {
  {UserView, {-2.1, -2.5, 4}, ""}, {{1.3, -2.4, 2} -> "View 1", 
      {-2, -2.5, 1} -> "View 2", {-1.85, -2.5, 1} -> "View 3", 
      {-2.1, -2.5, 4} -> "View 4", {-2, -3, 0} -> "View 5", 
      {-2, -2.5, 2} -> "View 6", {-2, -3.2, -0.5} -> "View 7", 
      {-2, -2.66, 2} -> "View 8"}, ControlType -> Setter
  }, 
  ControllerLinking -> True]

I take it you don't want to use the same code to generate the points. Whatever it is you want to do, replace pointCoordinates with your point generation code which depends on NumPoints.

The author of the demonstration is Paul Savory.

share|improve this answer
3  
The demonstration terms of use Say it's CC attribute-non commercial-use alike. So attribution to the original author is required. This code does use a random number generator (though not a built-in one). The OP doesn't seem to want that, though it's unclear to me what he wants instead. –  Sjoerd C. de Vries Jul 16 '13 at 6:18
    
@SjoerdC.deVries Thanks for pointing out the copyright issue. –  Pickett Jul 16 '13 at 9:12
    
Thank you guys for your help! I meant that I want to just use output data of a random generator = numbers only to plot the points. So I don't use a 'point generation code' or a generator. –  user84841 Jul 16 '13 at 15:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.