#!/usr/bin/python
#
# Generate a W by H matrix filled with random values between 0 and 99
#
# genmatrix.py [W] [H]
#

from sys import argv
import random
from math import floor

W=16
H=16
D=16

if len(argv) >= 2:
  D=H=W=int(argv[1])

if len(argv) >= 3:
  D=H=int(argv[2])

if len(argv) >= 4:
  D=int(argv[3])

print "SIZE",W,H,D

for z in xrange(D):
  for y in xrange(H):
    for x in xrange(W):
      print "%.8g "%(0.5 * random.random() + 0.5),
    print
  print
