Re: [go-nuts] How to generate long int with k random bits.

2017-10-13 Thread Jan Mercl
> On Fri, Oct 13, 2017 at 4:37 PM Christian LeMoussel wrote: See https://golang.org/pkg/math/big/#Int.Rand -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from

[go-nuts] How to generate long int with k random bits.

2017-10-13 Thread Christian LeMoussel
Hi, In python there is random. getrandbits(*k* ) that returns a python long int with *k*