Brownian tree: Difference between revisions

 
Line 2,798:
=={{header|Locomotive Basic}}==
{{trans|ZX Spectrum Basic}}
[[File:Cpcbasic brownian.png|thumb|Output]]
This program is ideally run in [https://benchmarko.github.io/CPCBasic/cpcbasic.html CPCBasic] and should finish after about 20 to 25 minutes (Chrome, desktop CPU). At normal CPC speed, it would probably take several days to run when set to 10000 particles.
<syntaxhighlight lang="locobasic">10 MODE 1:DEFINT a-z:RANDOMIZE TIME:np=10000
Line 2,815 ⟶ 2,816:
1020 y=RND*400
1030 RETURN</syntaxhighlight>
 
=={{header|Lua}}==
The output is stored in as a ppm-image. The source code of these output-functions is located at
47

edits