World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.003s
<1234567…34>
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    Hi Battle Bunny,

    Never ceases to amaze me the difference in performance between BASIC and MCODE. Sounds like you have a powerful routine there.

    I have modified my demo version so that it can be used (for future generations ;)) as ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... ] 1 DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK ... : LET
    p$(n)=CHR$ (RND*25+65): NEXT n
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... ] 1 DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK ... : LET
    p$(n)=CHR$ (RND*25+65): NEXT n
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    Hi Dr Beep etc.

    Come on guys - you know more about Sinclair BASIC than is healthy! :smile: Surely you have some tips to optimise/speed up the following code.

    [CODE]100 GO SUB 250
    110 REM SHELL SORT V4
    120 LET b=INT (n ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    [QUOTE=JamesD;482918]If you can use ELSE it should look like this.
    [CODE]110 REM COMB SORT V2
    ...[/CODE][/QUOTE]

    Hi James,

    Coded up your V2 Comb Sort and got the following results:

    Paddy's original V1 Comb ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536 ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET a=(a ... /> LET a$(a)=CHR$ (65+RND*25):
    NEXT a:
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... /> 9000 DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK ... : LET p$(i)=
    CHR$ (RND*25+65): NEXT i
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... /> 9000 DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK ... n: LET p$(i)=CHR$ (RND*25+65): NEXT i
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    [B]STEP 3 -[/B] Now let's take a look at the quicksort algorithm, since we will need to properly understand it in order to find further improvements.

    The basic idea behind the quicksort algorithm can be represented by the following pseudo-code ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... /> 9000 DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK ... n: LET p$(i)=CHR$ (RND*25+65): NEXT i
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536 ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET a=(a ... /> LET a$(a)=CHR$ (65+RND*25):
    NEXT a:
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536 ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET a=(a ... /> LET a$(a)=CHR$ (65+RND*25):
    NEXT a:
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536 ... 23674+256*PEEK 23673+PEEK 23672)/50:
    LET a=(a ... /> LET a$(a)=CHR$ (65+RND*25):
    NEXT a:
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... New"]xx10 RANDOMIZE PEEK 23672+256*PEEK 23672[/FONT]

    there ... "]x100 LET a=1+INT(RND*100)[/FONT]

    With ... wee loop that executes the RND 10 times.

    Paddy
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... New"]xx10 RANDOMIZE PEEK 23672+256*PEEK 23672[/FONT]

    there ... "]x100 LET a=1+INT(RND*100)[/FONT]

    With ... wee loop that executes the RND 10 times.

    Paddy ...
    Philip Kendall Philip Kendall May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... /> [CODE]100 RANDOMIZE PEEK 23672+256*PEEK 23672
    110 FOR a ... /> 120 LET b=1+INT (RND*100)
    130 PRINT b ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... New"]xx10 RANDOMIZE PEEK 23672+256*PEEK 23672[/FONT]

    RND*100)[/FONT]

    RND 10 times.
    [/ ... CODE]100 RANDOMIZE PEEK 23672+256*PEEK 23672
    110 FOR ... 120 LET b=1+INT (RND*100)
    130 PRINT ...
    Alcoholics Anonymous Alcoholics Anonymous May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... ;532359]10 RANDOMIZE PEEK 23672+256*PEEK 23672[/QUOTE]

    Actually ...
    30 LET a=PEEK 23672
    40 IF INKEY$"" THEN ...
    70 LET b=PEEK 23672
    80 RANDOMIZE a*256 ... /> 120 LET b=1+INT (RND*100)
    130 PRINT b ...
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ...
    70 POKE 23671, PEEK 23672
    100 REM Remaining program ... /> 120 LET b=1+INT (RND*100)
    130 PRINT b ...
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    Hi Patrik,

    Sorry to bother you again but I have noticed a "funny" issue. Now I fully accept it might be down to me and the way I altered the machine code or a bug in BASin. When I run the attached program for the first time in BASin the ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ...
    3400 LET m=PEEK 23672:
    IF m=0 THEN ... ,m:
    PAUSE 1+INT (RND*31):
    NEXT h[/CODE ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    Thanks Philip. Mofied program now looks like:

    [CODE]100 REM Fast
    110 REM
    120 REM Create MCODE
    130 REM
    140 CLEAR 63793
    150 RESTORE 620: LET a=63798
    160 READ v: IF v255-(256-42*INT (256/42)) THEN GO TO 340< ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Help needed... RND in machine codeI have been battling away trying to convert a simple BASIC routine (below) to machine code, but to no avail. The routine is used to fire 2 bullets a…

    ... /> I use the timer from 23672 as seed and pointer in ... ROM.

    When RND is read I adjust the ...
    Dr BEEP Dr BEEP July 2012 Development
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... ()=INT ((PEEK 23673*256+PEEK 23672)/50)
    30 FOR n ... ,1,142
    50 POKE 23672,0: POKE 23673,0
    Battle Bunny Battle Bunny August 2012 Sinclair Basic
  • Problem With POINT StatementHello everyone this is my first ever post, So firstly i'd like to say hello to everyone and secondly thank you to the admins for such a great site, …

    ... /> =CHR$ 16+CHR$ INT (RND*8)+CHR$ 17+CHR$ INT ... (RND*8)+CHR$ (a+143):
    RND*21): LET ca=INT (RND*31):
    ... LET rz=INT (RND*21): LET ... cz=INT (RND*31)
    803 ...
    Battle Bunny Battle Bunny September 2013 Sinclair Basic
<1234567…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 12:41AM
  • i am currently listening to........
    dmsmith on April 15
  • I am currently watching.....
    zx1 on April 15
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 15
  • Cooperative Games.
    harriusherbartio on April 15
  • Celebrity deaths...
    mel the bell on April 15
  • Minor British Sports that did become games on the ZX Spectrum
    dm_boozefreek on April 15
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 15
  • Inside No.9 favourite episodes
    Maroc's Other Projection on April 15
  • How we became brainwashed by social media
    Scottie_uk on April 15

HitBox

Word Docs Hits
23672 204 359
rnd 2.9K 4.1K

Related Threads

  • RND not random?I recently wrote a simple Alien style game where the bad guys shoot you at random, it works fine, but after a while the Variable that is supposed to …
  • Happy birthday RNDThink of a number between 0-100 RND, go on, any number.<br /> <br /> <br /> Huppy Burthus-day.
  • Happy birthday RND!!Merry birthday... Get absolutely sloshed!! (And play lots of [I]Chaos[/I]) :)
  • Happy birthday RND!!Merry birthday... drink lots!! :smile:
  • Happy birthday RND!Merry birthday... drink Chaos! :smile:
  • problem with RND (or maybe INT)I'm using this statement:<br /> <br /> LET m=(INT (RND*sn)+k1)*k2-k1<br /> <br /> to give a pointer m to a 2-byte segment of a string l$. Items k1 &a…
  • RND CommandsExactly how random are they?<br /> <br /> Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement c…
  • RND numberHow do I go about selecting from the numbers 4,9,14 and 19?<br /> <br /> (RND*4)*5-1 ????? :-?
  • Basic BASIC help needed RNDHi all,<br /> <br /> I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers.<br /> <br …
  • happy birthday RNDhave a good .. if not random one..

Related Searches

  • 23672
  • rnd
  • new rnd
  • rutine rnd
  • rnd rom
  • rnd in rom
  • rnd 65535
  • rnd swarfega
  • rnd asm
  • rnd slow
  • rnd performance
  • rnd peek
  • peek 23672
  • rnd repetitio s
  • rnd repetition
  • rnd weights
  • rnd percentage
  • rnd chance
  • rnd probabilities
  • rnd based on peek 23672

Copyright © 2024 World of Spectrum