import { jsx as _jsx } from "react/jsx-runtime";
import { BaseExpression } from "../../BaseExpression";
import { ExpressionPiece } from "../../ExpressionStyles";
import { GroupedBracketedDiv } from "../Logic/Grouping";
export class RandomExpression extends BaseExpression {
    constructor() {
        super(...arguments);
        this.__type = "Random";
    }
    render() {
        return (_jsx(GroupedBracketedDiv, Object.assign({ issue: this.getValidationIssues()[0] }, { children: _jsx(ExpressionPiece, { children: "Random Number" }, void 0) }), void 0));
    }
    evaluate(data, testContext) {
        return Math.random();
    }
}
//# sourceMappingURL=RandomExpression.js.map