Learn R Programming

niarules (version 0.2.0)

rs: Simple Random Search

Description

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

Usage

rs(candidate_len)

Value

A vector of random solutions between 0 and 1.

Arguments

candidate_len

The length of the vector of random solutions.

Examples

Run this code
candidate_len <- 10
random_solutions <- rs(candidate_len)
print(random_solutions)

Run the code above in your browser using DataLab