# Find top 10 sequences from 100 random samples
best <- find_best_random_combinations(
moves = c("1", "2", "3"),
combo_length = 10,
n_samples = 100,
n_top = 10,
start_state = 1:10,
k = 4
)
print(best)
# Quick search with letter codes
top5 <- find_best_random_combinations(
moves = c("L", "R", "X"),
combo_length = 5,
n_samples = 100,
n_top = 5,
start_state = 1:10,
k = 3
)
print(top5)
Run the code above in your browser using DataLab