Get started with chance CDN
MIT licensed
Chance: event occurring randomly, not deliberate.
Tags:- chance
- random
- generator
- test
- mersenne
- name
- address
- dice
Stable version
Copied!
How to start using chance CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with chance CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/chance/1.1.11/chance.min.js"></script>
</head>
<body>
<button id="generate">Generate Random Number</button>
<script>
const chance = require('chance').Chance();
const button = document.getElementById('generate');
button.addEventListener('click', () => {
const randomNumber = chance.dice({ sides: 6, count: 1 }).roll();
console.log('Random Number:', randomNumber);
});
</script>
</body>
</html>
Copied!
Copied!
All versions
0.1.0
0.1.1
0.2.0
0.2.1
0.3.0
0.3.1
0.3.3
0.4.0
0.4.2
0.4.3
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.6.0
0.6.1
0.6.2
0.6.3
0.6.4
0.7.0
0.7.1
0.7.2
0.7.3
0.7.4
0.7.5
0.7.6
0.7.7
0.8.0
1.0.0
1.0.1
1.0.10
1.0.11
1.0.12
1.0.13
1.0.14
1.0.15
1.0.16
1.0.17
1.0.18
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0
1.1.10
1.1.11
*** 1.1.12
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9