DaMiR.goldenDice: Generate a Number to Set Seed

Description Usage Details Value Author(s) Examples

View source: R/helper.R

Description

This function implements a formula based on current date and time.

Usage

1

Details

The number is generated by combining current seconds (S), minutes (Mi), hours (H), days (D), months (Mo), years (Y) and golden ratio (φ), in the form:

Num = (S * Mi + H * D * Mo / D) ^ φ

Value

An integer number.

Author(s)

Mattia Chiesa, Luca Piacentini

Examples

1
2
gen_numb <- DaMiR.goldenDice()
set.seed(gen_numb)

DaMiRseq documentation built on Nov. 8, 2020, 5:53 p.m.