math-random-id

Generate random id on Math.random()

Usage no npm install needed!

<script type="module">
  import mathRandomId from 'https://cdn.skypack.dev/math-random-id';
</script>

README

math-random-id

Generate random id on Math.random()

Usage

import randomID from 'math-random-id'

randomID(); // => d7ltdggrh2o

Install

Via Yarn:

yarn add math-random-id

Via NPM:

npm i math-random-id

Browser

Include math-random-id in the page

<!-- unpkg -->
<script src="https://unpkg.com/math-random-id"></script>
<!-- or jsdelivr -->
<script src="https://cdn.jsdelivr.net/npm/math-random-id"></script>