europalang / Europa-Lang

A fun and simple language with NO classes whatsoever!
MIT License
22 stars 5 forks source link

Added random (not sure why Europa is complaining tho) #23

Closed darkdarcool closed 2 years ago

darkdarcool commented 3 years ago

This adds random into the Europa math stdlib feature. It should have the following syntax:

var someRandomValue = random(minimum, maximum);

Not sure why it throws this error tho:

Screen Shot 2021-09-08 at 4 34 40 PM

Can some of the main devs help me?

darkdarcool commented 3 years ago

BTW: TESTS WILL BREAK FOR THIS PR BRANCH TILL ISSUE IS FIXED

cursorweb commented 3 years ago

well yeah there's an arity did you forget to change that

cursorweb commented 3 years ago

also if you don't take the time to write commits i will not merge it.

darkdarcool commented 3 years ago

well yeah there's an arity did you forget to change that

I took inspiration from the println, and it referenced rags as an array, so that’s what I took it as

darkdarcool commented 3 years ago

also if you don't take the time to write commits i will not merge it.

Will take note of that in the future

cursorweb commented 3 years ago

lol nw its just important to say what you changed, making it easier to look at versions

anyways there's still a bug in europa on for loops reeeeeeee

darkdarcool commented 3 years ago

lol nw its just important to say what you changed, making it easier to look at versions

anyways there's still a bug in europa on for loops reeeeeeee

Oooooof, hope you get it fixed