What is RandomSimulation?
RandomSimulation generates fully self-contained, runnable web simulations on demand. Simulate anything from simple particle systems to games and demos. It returns a complete HTML/CSS/JS page that renders in real time.
The web version uses an API LLM; the offline app requires Ollama installed and is fully local and private. You will need to download Ollama and pull a model to use it. Run it with Ollama closed, check the system tray. Recommend minimum of 12GB VRAM for simulations, Qwen3 Coder 30B A3B instruct and above for the LLM.
How it works
- Type a prompt describing the simulation you want. Press enter. Be detailed for better results.
- The simulation is automatically rendered in real time.
- Code is streamed, highlighted, and can be copied.
- The Random button will generate a Random Simulation.
- Each simulation costs money for RandomSimulation to make. If you enjoy RandomSimulation please consider donating to support it using the donate button below.
FAQs
- What can I simulate? Anything. Examples:
- Neon Particle simulation.
- Matrix rain effect with random green characters streaming down the screen.
- A simulation demo of Brownian Motion. Particles contained in one half of a rectangle held back by a screen. A remove screen button. Particles can then diffuse out of the box. A reset button. Sliders for number of particles and particle speed. Colours. Must consider particle collision physics and collisions ith the internal sides of the rectangle. - Can I save simulations? — Yes, click the copy button and paste it into an editor or notepad. Run the file in a browser by opening it or dragging and dropping.
- Why didn't my simulation work?? It fails a lot, LLMs make mistakes. They are getting better all the time.
- What do you do with my simulations and data? I don't see or collect any code or simulations you generate. The code is generated by a LLM provider on their servers and they send it to your browser to render on your computer. See cookie and privacy policy for details.
Download Offline App
Windows installer. Runs fully offline, only dependency is Ollama. Best for privacy.
Linux user or want to see the source code? Get installers on GitHub Releases or visit the repo: github.com/Random-Simulation/RandomSimulation.