mirror of
https://github.com/MontFerret/ferret.git
synced 2025-11-25 22:01:39 +02:00
Rewrite comments, closing #118
This commit is contained in:
@@ -2,15 +2,14 @@ package math
|
||||
|
||||
import (
|
||||
"context"
|
||||
"math/rand"
|
||||
|
||||
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values"
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
/*
|
||||
* Return a pseudo-random number between 0 and 1.
|
||||
* @returns (Float) - A number greater than 0 and less than 1.
|
||||
*/
|
||||
// Rand return a pseudo-random number between 0 and 1.
|
||||
// @returns (Float) - A number greater than 0 and less than 1.
|
||||
func Rand(_ context.Context, args ...core.Value) (core.Value, error) {
|
||||
err := core.ValidateArgs(args, 0, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user