Skip to content

RandomGraph doesn't actually output random result #54

@heryvandoro

Description

@heryvandoro

On the RandomGraph algorithm, GetRndNId does not return an id of a random node in graph each subsequent program executions.

The solution is : The random generator must be seeded first.

Reference :

GetRndNId()
Returns an ID of a random node in the graph. For this method to return different values on subsequent program executions, the random generator must be seeded first, for example with TRnd.Randomize().

https://snap.stanford.edu/snappy/doc/reference/graphs.html

Before :
screenshot_24

After :
screenshot_27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions