shithub: sce

ref: 01c80ca6f4222d79059d219b94e3a426cb2b3bfd
dir: /rc/genmap/

View raw version
#!/bin/rc
if(! ~ $#* 3){
	echo usage: $0 x y tile >[1=2]
	exit usage
}
awk -v 'x='$1 -v 'y='$2 -v 't='$3 '
BEGIN{
	srand()
	n = int(x) * int(y)
	while(n-- > 0){
		v = 1 + rand() * 1000000 % 10
		print "map=" t int(v)
	}
}
'