fix code block
changes to arguments
Merge branch 'master' of https://github.com/mike42/forestry
remove remaining use of rand()