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.010s
<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 Dr. Beep,

    Tried one of the tricks you said (move the code nearer the top) and a couple of other optimisations and the Shell Sort now averages 10.3 seconds rather than 11.57.

    [CODE]100 GO SUB 250
    110 REM SHELL SORT V2
    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…

    ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50:
    LET t2=(65536*PEEK 23674+256*PEEK ... 23673+PEEK 23672 ...
    Battle Bunny Battle Bunny 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…

    ... DEF FN t()=65536*PEEK 23674+256*PEEK 23673+PEEK 23672
    10 DIM ...
    Battle Bunny Battle Bunny 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…

    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 23674)/50
    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 23674)/50
    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
  • How to Write ZX Spectrum Games As some of you may know, it has long been my intention to produce a document which explains pretty much everything I have learned - and am still lea…

    ... /> Printing Simple Graphics
    Displaying Numbers
    Changing Colours


    Chapter Four - Random Numbers

    Chapter Five - Simple ... Spectrum's Clock
    Seeding Random Numbers

    Chapter Thirteen - Double ...
    jonathan jonathan October 2010 Announcements
  • 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…

    ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK ... 23673+PEEK 23672 ...
    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 23674)/50
    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 23674)/50
    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…

    ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK ... 23673+PEEK 23672 ...
    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…

    ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK ... 23673+PEEK 23672 ...
    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…

    ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK ... 23673+PEEK 23672 ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • A little program to set the time...Hi Folks, OK, I have amended the program so you now have four routines/functions you can use in your own programs: TIME: GET - Reads the current va…

    ... *PEEK 23674+256*PEEK 23673+PEEK 23672):
    LET mm=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672 ...
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • FRAMES counter...Hi Folks, I wrote a test program that uses FRAMES to generate a clock. When I tested this within BASin it worked well and kept near perfect time. …

    ... Your Spectrum:

    [quote]23672/3/4 FRAMES


    [code]65636*PEEK 23674 + 256*PEEK 23673 + PEEK 23672[/code]

    which ...
    na_th_an na_th_an January 2011 Sinclair Basic
  • FRAMES counter...Hi Folks, I wrote a test program that uses FRAMES to generate a clock. When I tested this within BASin it worked well and kept near perfect time. …

    ... SUB 2600
    860 IF PEEK 2356013 THEN GO TO 840 ... *PEEK 23674+256*PEEK 23673+PEEK 23672):
    LET mm=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672 ...
    Paddy Coleman Paddy Coleman January 2011 Sinclair Basic
  • NEW! Poll Best Spectrum game from 2010 - Everybody vote here please -OK, so since there were several releases after the day I posted the original Poll, I would post this new one to include all the games from 2010. Eve…

    ... half of 2010 games, with random numbers of votes per voter.
    Shiru Shiru January 2011 Games
  • NEW! Poll Best Spectrum game from 2010 - Everybody vote here please -OK, so since there were several releases after the day I posted the original Poll, I would post this new one to include all the games from 2010. Eve…

    ... , it's just a random list with completely random numbers. Now it's ...
    Timmy Timmy January 2011 Games
  • 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…

    ... and then proceed to generate random numbers from that seed I should ... get a pseudo random sequence - correct?
    Paddy[/QUOTE ... get a pseudo random sequence of the same 65535 numbers between 0 ...
    Mad Fritz Mad Fritz 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…

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

    there ...
    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…

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

    there ...
    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…

    ... different sequences of "pseudo" random numbers. The RANDOMIZE statement chooses one ... (looping) sequence of 65536 pseudo random numbers generated by RND. RANDOMIZE selects ... same sequence with the same numbers every time.
    As ... the same sequence of numbers.
    Mad Fritz Mad Fritz 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…

    ... ) sequence of 65536 pseudo random numbers generated by RND. RANDOMIZE ... cyclical sequence of 65536 numbers with nearly uniform distribution, ... infinite number of completely random numbers. When playing a game ... cyclically, and its numbers are not really random.
    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…

    ... anyone have a clue how random numbers are generated on an Acorn ... couldn't find that the numbers repeat themselves after a certain ...
    Mad Fritz Mad Fritz 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…

    ... anyone have a clue how random numbers are generated on an ... or the bits in the random numbers generated are less correlated ... make sure the sequence of numbers generated are maximum length ( ... disassembly or maybe plot the random numbers generated to see the tell ...
    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…

    ... introduce additional randomness by sharing random numbers between different processes and by ... introducing other truly random factors like mouse movement into ...
    AndyC AndyC May 2011 Sinclair Basic
  • Speeding up select processing...Hi Folks, I have the following code in my program and it works fine but is rather "sluggish". I have even moved it to the beginning of the program …

    Some changes which would reduce the amount of processing per cycle:
    * delete lines 290 & 300
    * move line 310 after line 320
    * change line 330 to: IF NOT t(2) OR t(2)>=8 AND t(2)
    Battle Bunny Battle Bunny June 2011 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
peek 1.9K 4.4K
23672 204 359
random 6.6K 8.2K
numbers 5.6K 7.2K

Related Threads

  • random numbersCan you write a piece of code that gets you a truly random number from the Spectrum, or is it only capable of generating a pseudo-random number (ie. …
  • Pseudo random numbersHi everybody,<br /> I 'd like to convert a little program i wrote in VisualBasic6.0 to C or C++ to make it run faster and for training as i'm a very …
  • problem using FRAMES to generate 'random' numbersI realise the pros use bytes from ROM to get their random numbers, presumably because they want to use FRAMES to synchronise the printing and avoid s…
  • Req' Help with Random numbersHello all, <br /> im new to the forum, i hope im putting this in the right place ...<br /> <br /> I would like to ask a question in the hope someone …
  • Random numbers...Hi Folks,<br /> <br /> I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then pro…
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ...<br /> <br /> I have been trying to write a simple ish basic program to compare rand…
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…
  • Wanted: Monty Mole and the random crushersA fairly good rip off of Jet Set Willy, this game suffers from one main weakness- the randomly falling crushers. You can be the best player in the wo…
  • Random Smiley FacesAs promised, here's the Syntax:<br /> <br /> ;Startup<br /> <br /> 5 CLS<br /> 7 PAPER 0: BORDER 0<br /> <br /> ;Graphics<br /> <br /> 10 FOR n=0 to …
  • Spectrum 2003 News and Info Special at PEEK N' POKE[url="http://peeknpoke.emuunlim.com/spectrum2003/pnpspectrumnews2003index.html"]http://peeknpoke.emuunlim.com/spectrum2003/pnpspectrumnews2003index.h…

Related Searches

  • random
  • 23672
  • rom peek 128k pentagon
  • rom peek 128k pentagon 004c
  • identify pentagon 48k 128k rom peek
  • peek rom identify model
  • peek rom detect model 48k 128k 3 pentagon
  • serial numbers
  • 2 numbers in address
  • 2 numbers in address debugger
  • random assembly
  • spectaculator yellow numbers
  • harlequin random numbers
  • random numbers
  • peek 23672
  • peek 23672 timer
  • peek random ivanbasic
  • peek 23672 countdown
  • peek 23673 256 23672 50
  • rnd based on peek 23672

Copyright © 2024 World of Spectrum