Skip to content

Split a string randomly into a given or random count of substrings

Notifications You must be signed in to change notification settings

sovpro/split-randomly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split Randomly

Split a string randomly into a given or random count of substrings.

Build status for Node.js 4.x and newer

Split randomly into a given count of substrings

var hello_str = 'Hello, World!'
var substring_count = 5
var substrings = splitRandomly (hello_string, substring_count)

Split randomly into a random count of substrings

var hello_str = 'Hello, World!'
var substrings = splitRandomly (hello_string)