# Try out cases where you make target_items the default.
make_random_block(60, item_per_block = 3)
# You can also set your own values of target_items.
make_random_block(60, 45, item_per_block = 3)
# Also see what happens if target_items is not a multiple of item_per_block.
make_random_block(60, 50, item_per_block = 3)
Run the code above in your browser using DataLab