added preface to explain random number generation, etc