DaMiR.goldenDice {DaMiRseq} | R Documentation

## Generate a Number to Set Seed

### Description

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

### Usage

    DaMiR.goldenDice()

### 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

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

[Package DaMiRseq version 1.10.0 Index]