# How to name a save?

**URL:** <https://discourse.processing.org/t/how-to-name-a-save/17753>\
**Category:** Beginners\
**Created:** [February 11, 2020, 9:05pm UTC](https://discourse.processing.org/t/how-to-name-a-save/17753 "2020-02-11T21:05:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 11, 2020, 9:10pm UTC](https://discourse.processing.org/t/how-to-name-a-save/17753/2 "2020-02-11T21:10:18Z")

</div>

Hello,

Try this:

> [@Renaming PDF generated files](https://discourse.processing.org/t/renaming-pdf-generated-files/16164):
>
> Unable to find the answer to this in REFERENCE section. I have a very simple program to generate random color block overlaps. Currently set up to record a PDF of each instance when code runs. How do I generate a new name for the PDF each time code is run (otherwise it’s the same file name each time and overwrites the previous PDF file)? CURRENT CODE BELOW: import processing.pdf.\*; float randomH1 = random(300, 400); void setup() { size (400, 600); noLoop(); beginRecord(PDF, "filenam…

---

_[View the full topic](https://discourse.processing.org/t/how-to-name-a-save/17753)._
