PDA

View Full Version : Generate random numbers



Scott Lambert
September 16th, 2011, 12:52 PM
Has anybody written a random number generator macro/submacro?

Thanks.

Scott

pal
September 17th, 2011, 07:44 AM
See for example:
http://rosettacode.org/wiki/Knuth_shuffle#Vedit_macro_language

That is a small program to shuffle numeric registers using Knuth shuffle.
It contains random number generator subroutine.

In the description part there is a link to a routine that shuffles text lines in an edit buffer.

--
Pauli

Scott Lambert
September 19th, 2011, 04:57 PM
Thanks Pauli. Sorry for delay in reply, was away for the weekend. Scott


See for example:
http://rosettacode.org/wiki/Knuth_shuffle#Vedit_macro_language

That is a small program to shuffle numeric registers using Knuth shuffle.
It contains random number generator subroutine.

In the description part there is a link to a routine that shuffles text lines in an edit buffer.

--
Pauli

Fredrxeq
October 10th, 2017, 04:32 PM
Hi,

I need to general random decimal numbers on the fly. I know how to generate a random number but how do i generate number with decimal ?? Help