• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
OpenSCAD Randomizer 3D Printer File Image 1
OpenSCAD Randomizer 3D Printer File Image 2
OpenSCAD Randomizer 3D Printer File Thumbnail 1
OpenSCAD Randomizer 3D Printer File Thumbnail 2

OpenSCAD Randomizer

mathgrrl avatarmathgrrl

March 2, 2019

thingiverse-icon
DescriptionCommentsTags

Description

This code creates a sequence of random-height "skyscrapers" based on a random seed and two style parameters. One style parameter makes it more or less likely for the skyscrapers to be tall, and the other style parameter makes it more or less likely for the skyscrapers to exist. The random seed is used to generate sequences of random numbers that control the height and existence of the skyscrapers, weighted by the chosen style parameters.

See it in action in this video (no sound): https://www.youtube.com/watch?v=-hiJMWabMXI

You can use this code as the base for any OpenSCAD project with a random element. Similar code was used as the starting point for our Snowflake Machine and Sunburst Clocks.

The code also has built-in functionality for Thingiverse Customizer menus that allow the user to modify the size, style, and random seed parameters. Click the "Open in Customizer" button to see how the menus work in action. To use the code in OpenSCAD you will have to comment out the Customizer random seed line of code and un-comment the OpenSCAD random seed line of code.

Download the .scad file and open it in OpenSCAD to get started.

License:

Creative Commons - Attribution - Non-Commercial - Share Alike

Related Models

Digital Sundial preview image

Digital Sundial

Mojoptix profile image

Mojoptix

67,323

Cryptex (5, 6, 7, 8 or 10 letter wheels) preview image

Cryptex (5, 6, 7, 8 or 10 letter wheels)

Cees profile image

Cees

8,554

Custom QR Code Luggage / Bag Tag preview image

Custom QR Code Luggage / Bag Tag

vlycser profile image

vlycser

8,774

NUT JOB | Nut, Bolt, Washer and Threaded Rod Factory preview image

NUT JOB | Nut, Bolt, Washer and Threaded Rod Factory

mike_mattala profile image

mike_mattala

51,781

Basic Gridfinity Baseplates (CadQuery Customizable) preview image

Basic Gridfinity Baseplates (CadQuery Customizable)

jdegs profile image

jdegs

2,376

Customizable Spotify Keychain / Tag preview image

Customizable Spotify Keychain / Tag

ewt profile image

ewt

2,806

Origami Carabiner by ddf3d.com preview image

Origami Carabiner by ddf3d.com

Charlie1982 profile image

Charlie1982

43,191

Morse Code Paddle / CW Key preview image

Morse Code Paddle / CW Key

Adam Kimmerly profile image

Adam Kimmerly

454