Page 1 of 1

[Golly] Random Fill probability < 1%

Posted: July 30th, 2013, 2:24 pm
by DivusIulius
Just a quick question: Is there a way in Golly to get Random Fill probabilities inferior to 1% with/without scripting?.

Thanks in advance. :wink:

Re: [Golly] Random Fill probability < 1%

Posted: July 30th, 2013, 6:55 pm
by Andrew
Here's a (clumsy) way without scripting:

- Create an empty selection and randomly fill it at 50%.
- Use Prefs > Edit to change the percentage to 1%.
- Randomly fill the selection again (now at 1%).
- Copy this 1% selection to the clipboard.
- Undo back to the 50% selection.
- Edit > Paste Mode > And.
- Edit > Paste to Selection.
- Now the selection density should be about 0.5%.

Clearly if you want to do this a lot it would be better to write a custom script. A good place to start would be random-fill.py in the scripts database (Help > Online Archives > Golly Scripts Database, then ctrl-click on that script).

Re: [Golly] Random Fill probability < 1%

Posted: August 1st, 2013, 6:08 pm
by DivusIulius
Andrew wrote:Here's a (clumsy) way without scripting.
Hey, such a sweet idea! Thank you!