Skip to content

A function that divides a number randomly into selected segments, with the condition that the sum of all the segments need to add up to the original number.

Notifications You must be signed in to change notification settings

AlexFrid/Bounded-random-number-division

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Bounded random number division

Allows you to specify 2 numbers:

  1. The number you want divided
  2. The number you want it divided by

The function then divides the number randomly into selected segments, with the condition that the sum of all the segments need to add up to the original number.

About

A function that divides a number randomly into selected segments, with the condition that the sum of all the segments need to add up to the original number.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages