PROBABILITY


STEP_0: Select a nonnegative integer quantity for each COLOR value to store in an array of COLOR values named A.

Note that A is an array consisting exclusively of the COLOR values such that each unique COLOR value appears as an element of A for some nonnegative integer number of times.

Note that the array named A is a JavaScript Object type value.

Note that each of the elements of A are JavaScript String type values.

#c_menus


STEP_1: Specify whether to randomly remove elements from A until A is empty (PROBABILITY_WITHOUT_REPLACEMENT) or else to randomly remove elements from A while replacing each of those elements with exactly one new randomly generated COLOR value from the list of all possible colors enumerated in STEP_0 for a total of N selections (PROBABILITY_WITH_REPLACEMENT).

Note that N is the total number of elements in the array named A.

Note that N is a JavaScript Number type value.

#p_menu


STEP_2: Click the GENERATE button to create the array named A, to copy the contents of A into a new array named B, and to display statistics about each of the the random selections of exactly one element from B in chronological order.

Note that the array named B is a JavaScript Object type value.

Note that the array named B is comprised exclusively of all the elements of A arranged in a random order.

Note that the elements of A are arranged such that the same COLOR values are adjacent to each other in A and such that the COLOR values are listed in the same order in A as those COLOR values are listed in STEP_0 of this web page.

 


#output


#events_log