Learn R Programming

hedgehog (version 0.1)

gen.unif: Generate a float between the from and to the values specified.

Description

Shrinks towards the from value, or if shrink.median is on, the middle.

Usage

gen.unif(from, to, shrink.median = T)

Arguments

from

same as from in runif

to

same as to in runif

shrink.median

whether to shrink to the middle of the distribution instead of the low end.

Examples

Run this code
# NOT RUN {
gen.unif(0, 1) # a float between 0 and 1
# }

Run the code above in your browser using DataLab