#!/usr/bin/perl # This script can be used to generate random lists of particles in the unit # box 0 \n"; print "Switches:\n"; print "-h Print this information\n"; print "-r Add extra radial column\n"; exit 0; }; @ARGV==2 or die "Exactly two command line arguments required\n"; open A,">@ARGV[1]" or die "Can't open output file"; foreach (1..@ARGV[0]) { printf A "$_ %f %f %f", rand(), rand(), rand(); printf A " %f",$opt_r*rand() if $opt_r; printf A "\n"; }