[BACK]Return to random.dem CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot / demo

Annotation of OpenXM_contrib/gnuplot/demo/random.dem, Revision 1.1.1.3

1.1       maekawa     1: #
1.1.1.3 ! ohara       2: # $Id: random.dem,v 1.1.1.1.2.1 2001/09/18 11:48:47 lhecking Exp $
1.1       maekawa     3: #
                      4: # random.dem
                      5: #
                      6: # Lattice test for random numbers;
                      7: # If you can see any patterns in this plot, the random number generator
                      8: # is not very good.
                      9: #
                     10: # Copyright (c) 1991, Jos van der Woude, jvdwoude@hut.nl
                     11: seed = 1317
                     12: seed = rand(seed)
                     13: set nokey
                     14: set xrange [0: 1]
                     15: set yrange [0: 1]
                     16: set zrange [0: 1]
                     17: set title "Lattice test for random numbers"
                     18: set xlabel "rand(n) ->"
                     19: set ylabel "rand(n + 1) ->"
                     20: set zlabel "rand(n + 2) ->"
                     21: set format x "%3.2f"
                     22: set format y "%3.2f"
                     23: set format z "%3.2f"
                     24: set tics
                     25: set sample 1000
                     26: set function style dots
                     27: set parametric
                     28: plot rand(1), rand(1)
                     29: pause -1 "Hit return to continue"
                     30: pause 0 "3D plot ahead, one moment please ..."
                     31: set sample 50
                     32: splot rand(1), rand(1), rand(1)
                     33: pause -1 "Hit return to continue"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>