Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Richard Ashbery Newsgroups: comp.sys.acorn.programmer Subject: Re: Specific numbers but in a random sequence Date: Sun, 23 Jun 2019 17:14:30 +0100 Organization: None Lines: 34 Message-ID: <57c8b60602basura@invalid.addr.uk> References: <57c7c5d6c0basura@invalid.addr.uk> <57c82fa1bdbasura@invalid.addr.uk> <57c8384f3bbasura@invalid.addr.uk> <57c8955578basura@invalid.addr.uk> <20190623120736.3390b842@ian-460-p050na> <57c8a5327abasura@invalid.addr.uk> X-Trace: individual.net jhn7J5Uywas38yjyrbhs5ggIQPskSm/UnWgUBZ/FglMdGsOJSh X-Orig-Path: uwclub.net!richard.ashbery Cancel-Lock: sha1:cxsaPXrUzgpG5knHsFTkkt6wSvA= User-Agent: Pluto/3.16 (RISC OS/5.25) NewsHound/v1.52-32 Xref: csiph.com comp.sys.acorn.programmer:5788 In article , Steve Fryatt wrote: > On 23 Jun, Richard Ashbery wrote in message [snip] > > > > > It would be better to leave > > > > > array%()=3,4,5,6,8 ... > > > > > and then do > > > > > PRINT array%(RND(18) - 1) > > > > No that doesn't work - it fails to take into account the last > > number in the array (120). Ian's method does work with all > > numbers being randomly displayed, albeit with some numbers > > displayed consecutively. > In which case, are you sure that you're running the same code that > you've posted here? Sorry Steve - it appears you are correct - I was running old code. It's not a good way but to see all the displayed output I ran the program from a TaskObey file but I forgot to save the edited code first before running. Thanks for posting your program - the stats are really useful. Apologies again Richard