Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

rsg

24 sites Security covered
View on drupal.org

CONTENTS OF THIS FILE
---------------------

* Introduction
* Installation
* Maintainers

INTRODUCTION
------------

Random String Generator module allows the developer to randomly generate
the string or a word or a number that will allows the user to use those
randomly generated key.

* For a full description of the module, visit the project page:
https://www.drupal.org/project/rsg

* To submit bug reports and feature suggestions, or to track changes:
https://www.drupal.org/project/issues/search/rsg

INSTALLATION
------------

* Install as you would normally install a contributed Drupal module.
See https://www.drupal.org/node/895232 for further information.

* By Using composer, composer require "drupal/rsg"

USAGE
-----------

* There will be as a service that will be helpful to generate
the string as below.
- \Drupal::service('random.string.generator')->string(10);
- \Drupal::service('random.string.generator')->word(10);
- \Drupal::service('random.string.generator')->number(10);

* This will be used in routes that will help to generate the random content
- /random/string/10
- /random/word/10
- /random/word-small/10
- /random/word-small-numeric/10
- /random/word-capital/10
- /random/word-capital-numeric/10
- /random/name/10/username
- /random/number/10
- /random/generate/10/pattern

* This will be used in JS to generate and use the strings.
- Drupal.generateString(10)
- Drupal.generateWord(10)
- Drupal.generateWordSmall(10)
- Drupal.generateWordSmallNumeric(10)
- Drupal.generateWordCapital(10)
- Drupal.generateWordCapitalNumeric(10)
- Drupal.generateName(10, 'username')
- Drupal.generateNumber(10)
- Drupal.generateRandom(10, 'patterns')

MAINTAINERS
-----------

Current maintainers:
* Praveen Achanta (praveen3555) - https://www.drupal.org/u/praveen3555

Activity

Total releases
1
First release
Nov 2025
Latest release
5 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.2 Stable Nov 14, 2025