Skip to content

Probability  #109

@LucasColas

Description

@LucasColas

Hello, I'm trying to learn processing and I'm working on this exercise :

int [] stuff = new int[5]

stuff[0] = 1;
stuff[1] = 1;
stuff[2] = 2;
stuff[3] = 3;
stuff[4] = 3;

int index = int(random(stuff.length));

But I have an error : "Syntax error, maybe a missing ] character?"

Could you help me ?

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