A random name picker that uses your own list

Build a random picker website from a list you can inspect, choose whether names may repeat, and send the working picker as one link.

In short

Put one name on each line and remove blank or repeated entries before the first draw.

Use “Remove after picking” when everyone should get one turn. Turn it off when repeats are allowed.

Test a valid draw and an empty list before sharing.

Edit the existing page when the title or list changes so the original share link opens the revision.

NOS Team made a fictional project-retro picker for this guide. The source list contained six unique names, two repeated entries, and one blank line. The page loaded the six unique names, picked Blair in the recorded draw, and reduced the available pool to five. We then cleared the list and confirmed that the page showed an error instead of inventing a result.

What should a random picker website do with your list?

A useful picker makes its rules visible. Readers should be able to inspect the names, see whether a selected name leaves the pool, and review what was picked. Hiding the list makes a spelling mistake or missing person harder to catch.

The example keeps the names in a text box. Loading the list trims empty lines and treats names that differ only by capitalization as repeats. It also shows the number of unique names before anyone presses the pick button.

The fictional random name picker open in the NOS Code view
1. The complete fictional picker is open in Code, with its working preview beside the code.
The fictional picker in NOS View with six unique names loaded
2. View shows the picker as a reader will use it, including the repeat rule and loaded-name count.

Download the complete fictional picker

How do I pick names without repeats?

Keep “Remove after picking” on. After a result appears, that name leaves the available pool. The recorded draw selected Blair and changed the count from six available names to five. Reset restores the cleaned list.

Turn the option off when each draw should use the full list. That suits questions where the same person may be chosen again. The rule should be decided before the first draw, not changed quietly after results appear.

The shared picker showing Blair selected and five names still available
3. A real button press selected Blair and left five names available.

How should duplicate and blank names work?

Blank lines should disappear. Repeated names should be handled consistently, including differences such as Blair and blair. In this example, the load step reported that two repeated entries were ignored.

An empty list needs a clear stop. We selected all the text, removed it, pressed Load list, and then pressed Pick a name. The result changed to “No name,” the count stayed at zero, and the page told the reader to add a name and load the list before trying again.

The shared picker showing its empty-list error and zero available names
4. The empty-list path stops the draw and tells the reader how to continue.

How do I share a random name picker website?

Open Share after the picker works. The captured panel says that anyone with the link can read the page without signing in and cannot edit it. Viewer participation is enabled for buttons on the page, so a recipient can use the picker while the page itself stays unchanged.

The NOS Share panel for the fictional picker with viewer participation enabled
5. Share creates the reader address and states what a person with the link can do.

NOS Workspace is the step that turns the finished HTML page into a reader link. Paste the page, check it in View, and use Share only after both the normal draw and the failure path work. The editor remains with the page owner; recipients use the interactive result.

Yes, when you edit the same page. We opened Edit on the existing fictional picker, clicked its heading, changed “Retro facilitator picker” to “Retro meeting speaker picker,” and pressed Done.

The fictional picker open in NOS Edit before its heading was changed
6. Edit opens the existing page rather than creating another picker.
The NOS View showing the revised Retro meeting speaker picker heading
7. Done returned to View with the revised heading saved.

The original share address was then opened again. It displayed the revised heading, while the list and controls stayed in place.

The original share link showing the revised picker heading
8. The same reader link now opens the revised title.

Finished state: one share link opens a working picker, rejects an empty draw, removes repeats from the loaded list, and reflects a later title change made on the existing page.

What can go wrong with a random name picker?

  • The list looks right but the count is wrong. Load the list again after changing the text. The pool should be rebuilt from what is currently visible.
  • A person appears twice. Decide whether repeated lines are separate entries or mistakes. This example treats capitalization-only matches as the same name.
  • Someone is picked again too soon. Check whether “Remove after picking” is on. Reset starts a new round.
  • The button has no valid result. Keep the error on the page and tell the reader to add at least one name. Do not silently insert a placeholder person.

Is the picker suitable for a prize draw?

The page uses the browser’s Math.random method. MDN states that it does not provide secure random numbers. That is suitable for a fictional meeting order or informal classroom turn, but not for money, regulated drawings, passwords, or any result that must resist manipulation. For the underlying selection method, read random numbers in JavaScript.

When not to do this

  • Do not use this page for a paid, regulated, or security-sensitive draw.
  • Do not use it when every viewer must share one permanent history across devices. This example shows the current draw in the reader’s own open page.
  • Do not put private student, employee, or customer records in a broadly shared picker.
  • Do not choose a wheel merely for decoration. If choices or prizes need visible slices, use Spin the wheel instead.

Questions people ask

How does the picker treat duplicate names?

The example trims each line and compares names without regard to capitalization. It keeps the first version and ignores later matches when the list is loaded.

Can a picked name appear again?

Yes when “Remove after picking” is off. When it is on, each selected name leaves the available pool until Reset rebuilds the list.

What happens if the name list is empty?

The example shows “No name,” keeps the available count at zero, and asks the reader to add a name and load the list before picking.

Can I change the picker without sending a new link?

Yes. Edit the existing NOS page and finish the change. In this test, the original share address opened the revised heading.

Should I use this picker for a draw involving money?

No. The page uses Math.random, which is not a secure random source. Use a drawing method that meets the rules and audit requirements for the real event.

Keep reading