Hawke AI
Random Roller
Version 2.0
Loading ...
Error starting Random Roller!
Random Roller Logo Hawke AI Random Roller Random Roller

Start rolling to create a passphrase.

Random Roller can create passwords without actually rolling dice. However, this is not as secure as using real dice.
Find out why.

Password copied to clipboard.
Unable to copy password.
Click the Enter Dice Roll button to add a space to the passphrase.

This is not as secure as using real dice! Read the About page to find out why.


Clear the passphrase to start a new one.

Random Roller Patterns

RR Enhanced Pattern – Begins with a digit [0-9] followed by a series of words with random capitalization separated by special characters (e.g. 9duDe.Seven7). The number in the Minimum Characters field will cause a passphrase with at least that number of characters. It will often be more.

RR Classic Pattern – A series of words with random capitalization separated by special characters (e.g. duDe.Seven7). The number in the Minimum Characters field will cause a passphrase with at least that number of characters. It will often be more.

Character String – A string consisting of random ASCII characters (e.g. d8l}]uZgu=kB) with the exact number of characters in the Minimum Characters field.

Alphanumeric String – A string containing random alphabetical and numeric characters (e.g. jg24A8T88SNQ) with the exact number of characters in the Minimum Characters field.

Decimal String – A string containing the exact number of random numerals (e.g. 672201932165) defined in the Minimum Characters field.

Custom Pattern – Create a custom pattern using Random Roller’s special pattern scripting code.

Random Roller Pattern Scripting Code

Random Roller uses a special pattern scripting code to allow a user to create their own passphrase patterns. It uses the following commands:

  • a = ASCII character
  • c = special character or digit
  • d = digit
  • l = letters and numbers
  • s = special characters
  • q = special characters, digits, or space
  • w = Diceware word
  • _ = space

Use brackets [] followed by =n to make repeating patterns (e.g. [wq]=5).

As an example, look at the following pattern:


This would result in a passphrase beginning with a digit, followed by four words with random capitalization and a special character, numeral or space (see q above). It might look as follows:

9sTar9Murky`seaN shOwy6

The Minimum Characters box is purposely disabled when using custom patterns, so that the pattern the user defines is processed exactly as entered.

Why Use Real Dice?

One of the most important elements in creating a secure passphrase is randomness. The biggest problem with computers is that they generate pseudo-random numbers. In other words, if one knows the way that the computer creates random numbers, one could conceivably create a system that will generate the identical sequence of numbers on a completely different device, making the sequence no longer truly random.

A quality die, on the other hand, will generate a truly random sequence of numbers based on how many faces it has. You can prove this yourself by a simple experiment: take a die and roll it 100 times. Log each roll in a ledger and then graph it in a bar graph. The average across the bar graph will show a regular spread across all six numbers of a regular die, proving that the numbers are truly random. For a summary on how random number generation works, have a look at the Wikipedia article “Random Number Generation”.

Since everyone has access to dice, everyone has access to a truly random number generator. This can be leveraged to create truly random passphrases and passphrases the sequence of which cannot be reproduced ever again (chaos theory!). Diceware® leverages this reality to allow us to create truly random yet memorable passphrases. Random Roller uses Diceware along with its own pattern algorithms to produce these without requiring the physical look up of the Diceware® words on a paper list. As long as you use dice to create your passphrase string, you can be certain that it will be truly randomly generated.

That said, Random Roller, does have an automatic passphrase generation feature for convenience, in which it uses virtual dice based on the computer’s random number generator to make the passphrase. This will never be as secure as actually rolling five dice. But in the end it is up to the user which method they will use to make their passphrase.

About Hawke AI Random Roller

The original version of Hawke AI Random Roller came about as a programmatic way to create truly randomized but memorable passphrases using the Diceware® word list created by Arnold G. Reinhold and five dice. As it was used over the years, certain shortcomings began popping up (e.g. What if I don’t happen to have any dice with me?) that made a re-thinking of the app necessary.

This second version of Hawke AI Random Roller is rewritten from the ground up as a vacation project to learn and implement new methods and ideas. It is a purely client-side application based on JavaScript, HTML 5, and CSS 3 and made available under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. It is designed to function as a Progressive Web App (PWA). It is designed to be easily localized and is currently available in English, German, and Turkish—and this includes the Diceware® word lists! If you wish to localize it yourself, the public repository is available and can be forked from Bitbucket. It would be great if you could commit any localizations you create back to the repository.

The only call that this application will make to the host site is when it is initially loaded. If it is installed to the device, it is completely standalone. No data will be transmitted back to the site. It will not even update itself automatically. You’ll even have to click the Check for Update button below to update it to the latest version.

Hopefully this little application will become a good companion to you for creating secure and memorable passphrases.

About Subpages

  • How to Use Random Roller
  • Why Use Real Dice?
  • Random Roller Patterns
  • Random Roller Pattern Scripting Code

Version: 2.0 beta
Last Updated: 2021-08-24

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Please reference Hawke AI (https://www.hawke-ai.com) and Joshua M. Wibberley in the attribution.

How to Use Random Roller

Random Roller can be used in two different modes: Dice Mode and Automatic Mode (which is not as secure as dice mode). To use Random Roller take the following steps:

  1. Select whether you have dice to roll, or whether you want to create a passphrase automatically.
  2. Select a pattern for the passphrase you wish to generate. If you choose Custom Pattern, you can define a complex pattern yourself using the Random Roller Pattern Scripting Code.
  3. Once you have selected the pattern, choose the minimum length you want for the passphrase. The shortest passphrase Random Roller can generate consists of 8 (eight) characters, unless it is consists of numbers only, at which point the minimum is 4 (four).
  4. Create the passphrase.
    • Dice Mode
      1. Roll the dice for the segment of the pattern. The number of dice you need to roll for each segment of the pattern will be shown by how many dice fields are displayed. Entering a number between 1 and 6 into the field will cause the field to advance automatically.
      2. When you have entered the roll, click or press the Enter Dice Roll Button. If your pattern contains a space (_), when it is time to generate the space, you can simply press the Enter Dice Roll button to add it.
      3. You can cancel passphrase generation at any time by touching or clicking the Clear Passphrase button.
    • Automatic Mode
      • Click on the Roll Dice Automatically button to create a passphrase.
      • Clicking the button repeatedly will generate a new password without clearing the Passphrase.

  5. Copy the password to the clipboard by pressing or clicking the Copy Passphrase to Clipboard button.
  6. Clear the Passphrase by pressing the Clear Passphrase button. In Dice Mode you will have to clear the passphrase before beginning a new one.
  7. If you switch between modes, be sure to clear the passprhase before using the new mode.

Random Roller runs completely in memory. Nothing is saved to your device, so passwords generated here are perfectly secure, but if you close the application they will disappear unless you copy them somewhere else.

Approximately % rolls left.
% rolls left.
Rolls complete!