Skip to content

RandomTrainingFactory.generate() produces values out of given range #111

@tomarmo

Description

@tomarmo

While calling
RandomTrainingFactory.generate( (long) (Math.random() * Long.MAX_VALUE), learnSetSize,1, 0, rangeBegin, rangeEnd);
I sometimes get values out of (rangeBegin; rangeEnd) range, e.g. while asking for a (-5;5) range I get values from (-15; -5) range.

It can be helped by using (Math.random() * Integer.MAX_VALUE) as a seed instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions