# elementor/3.27.0-dev2/modules/atomic-widgets/styles/utils.php

Elementor Website Builder – more than just a page builder, version 3.27.0-dev2. 14 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.27.0-dev2/code/modules/atomic-widgets/styles/utils.php
- Raw: https://pluginprobe.com/plugins/elementor/3.27.0-dev2/raw/modules/atomic-widgets/styles/utils.php
- Modified: 2024-12-10T14:19:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.27.0-dev2/code/modules/atomic-widgets/styles/utils.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\AtomicWidgets\Styles;

class Utils {
	public static function generate_id( string $prefix = '', $existing_ids = [] ): string {
		do {
			$id = $prefix . wp_rand( 1000000, 9999999 );
		} while ( in_array( $id, $existing_ids, true ) );

		return $id;
	}
}

```
