# How to force a random seed to be 9 characters?

**URL:** <https://forums.unrealengine.com/t/how-to-force-a-random-seed-to-be-9-characters/2481379>\
**Category:** UDK Programming and UnrealScript\
**Tags:** unreal-engine, Blueprint\
**Created:** [April 29, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/how-to-force-a-random-seed-to-be-9-characters/2481379 "2025-04-29T14:25:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [April 29, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/how-to-force-a-random-seed-to-be-9-characters/2481379/1 "2025-04-29T14:25:31Z")

</div>

I’m trying to generate a random seed using date time, then I append some 0s if its not 9 characters, then I shuffle it. The problem is it STILL spits out 8 characters strings. It physically should not be possible as it checks it right before it goes to the ui and resets the whole function if it is not 9.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/3/bc38583bea3c7f60a7ae2942039bafccb0574583.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/6/40634838f1863093eb4d2f5e956fec42f1d19b61.png)

Literally the very last thing to happen is checking to make sure it is indeed nine characters long and then restart if not, so how is it still ■■■■■■■■ out 8 character long seeds?

---

<div class="post-metadata">

**Author:** ![OnyeNacho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onyenacho/32/1122220_2.png) [@OnyeNacho](https://forums.unrealengine.com/u/OnyeNacho)\
**Post date:** [March 14, 2026, 10:02pm UTC](https://forums.unrealengine.com/t/how-to-force-a-random-seed-to-be-9-characters/2481379/2 "2026-03-14T22:02:30Z")

</div>

And this has ANYTHING to do with **Unreal Development Kit** (or **Unreal Engine 3** ) how?

UDK never uses Blueprints man. its uses UnrealScript for programming. You should move this thread (or delete it and repost it) to this category below instead:

[https://forums.unrealengine.com/tags/c/development-discussion/programming-scripting/blueprint/28/unreal-engine/705](https://forums.unrealengine.com/tags/c/development-discussion/programming-scripting/blueprint/28/unreal-engine/705)

This category is strictly for legacy users of the old and discontinued UE3 (and UDK).
