package ABC
import (
*****
"math/rand"
)
func execBlock( logger log.Logger,) { var validTxs, invalidTxs, unchkdTxs = 0, 0, 0
txIndex := 0 proxyCb := func(req *xxx, res *yyy) { if r, ok := res.Value.(*yyyy); ok { txRes := r.DeliverTx // code for random integer begin s1 := rand.NewSource(time.Now().UnixNano()) r1 := rand.New(s1) toCheck := r1.randIntn(100) // getting error for this line if toCheck <= 65{ *********** }else { ********* }// end } } }
I get the error as r1.randIntn undefined (type *math/rand.Rand has no field or method randIntn). Please help.
> To unsubscribe from this group and stop receiving emails from it, send an email to golan...@googlegroups.com.