@memen/randomize
v1.0.2
Published
Randomize a string
Downloads
1
Readme
Randomize
This module provides a simple class for randomizing strings using the Fisher-Yates algorithm.
Installation
npm i @memen/randomize
Usage
const StringRandomizer = require('@memen/randomize');
const inputString = 'Hello, World!';
const randomizer = new StringRandomizer(inputString);
const randomizedString = randomizer.randomizeString();
console.log('Original String:', inputString);
console.log('Randomized String:', randomizedString);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.