Michael Kubovy | 9 Jan 17:44 2008

Question about repeated commands

Dear PGF users,

Can anyone suggest a more compact way to fill a 4.4 x 4.4 in square  
region -- centered at (10, 0) -- with random dots?

				\foreach \position in
							{(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand)
							}
						\filldraw[fill=white,draw=black!75]
							\position circle (0.1cm);

_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Gmane