rs: Simple Random Search

View source: R/rs.R

rsR Documentation

Simple Random Search

Description

This function generates a vector of random solutions for a specified length.

Usage

rs(candidate_len)

Arguments

candidate_len

The length of the vector of random solutions.

Value

A vector of random solutions between 0 and 1.

Examples

candidate_len <- 10
random_solutions <- rs(candidate_len)
print(random_solutions)


niarules documentation built on Sept. 15, 2025, 5:08 p.m.