The following J-code produces the Sierpinski triangle. f=. 3 : '-:y+0 1 2=?3' 'dot'plot+/(3%:_1 0 1)*|:f^:(i.10000)1 1 1%3
Note however that the tacit code generator (13 :) evaluates the random number generator (?) at compile time rather than at run time. 13 : '-:y+0 1 2=?3' [: -: 1 0 0 + ] I think that is a bug. Thank you. Bo. Game of Chaos | | | Game of Chaos Java applet that produces the Sierpinski triangle by shooting dice | | | ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
