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>
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... TO 1e9:
    LET r=RND:
    LET i=(INKEY$="7 ... ,28;t;"s";AT 21,RND*29+1; INK 3-2 ... $ 145+"_"+CHR$ 145 AND PEEK 23672
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... TO 1e9:
    LET r=RND:
    LET i=(INKEY$="7 ... ,28;t;"s";AT 21,RND*29+1; INK 3-2 ... $ 145+"_"+CHR$ 145 AND PEEK 23672
    Digital Prawn Digital Prawn August 2007 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... :
    LET f=PEEK 23688:
    LET g=PEEK 23689:
    FOR ... /> DATA PEEK 23688,PEEK 23689,"","",p-1*(p>1)+RND*3-1 ...
    bigjon bigjon March 2008 Development
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... numbers for the array - using RND, presumably. It's quite quick ... :
    10 LET r=INT (RND*45056): LET y=INT (r ... FN r(RND*255,255,PEEK 23672),FN r(RND*175,175,PEEK 23672 ...
    Battle Bunny Battle Bunny March 2008 Sinclair Basic
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ...
    10 let a=int(rnd*r)+1
    15 for ... to 23294
    20 if peek x0 then let a=a ...
    Alcoholics Anonymous Alcoholics Anonymous March 2008 Sinclair Basic
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... real-life run, you'd PEEK from a screen's attrs ... ;0 THEN LET r=INT (RND*c)+1:
    POKE CODE ...
    Dunny Dunny March 2008 Sinclair Basic
  • St. Michael Micromasters: Computer GamesHi, The [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=2000988"]St. Michael Micromasters: Computer Games[/URL] book doesn't currently have a…

    ... def fn r(n)=int(rnd*n)+1
    2010 randomize ...
    c1541 c1541 March 2008 MIA/STP/SDP
  • St. Michael Micromasters: Computer GamesHi, The [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=2000988"]St. Michael Micromasters: Computer Games[/URL] book doesn't currently have a…

    ... def fn r(n)=int(rnd*n)+1
    2010 randomize ... def fn r(n)=int(rnd*n)+1
    2010 randomize ...
    c1541 c1541 March 2008 MIA/STP/SDP
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... ,v,p:
    LET x=RND*36+10:
    POKE n ... /> LET c=FN a(3+PEEK 23673,256):
    CLS : LET ...
    Dr BEEP Dr BEEP March 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    [code]
    1 DEF FN a(r,n)=r-INT (r/n)*n:
    READ c$,m,n,v,p:
    LET x=RND*36+10:
    POKE n*(c$(x)>"O"),3:
    LET c$(x)=CHR$ (CODE c$(x)-40):
    LET c=FN a(3+PEEK 23673,256):
    CLS :
    LET x=x+n*(c$(p)
    Dr BEEP Dr BEEP March 2008 Development
  • BASIC Keyword ReferenceHi. I do most of my ZX work on a grey-case +2 which, as we all know, is devoid of most of the 48k BASIC keywords (it has LOAD and stuff, but not much…

    ... the flashing K Cursor.
    PEEK Caps Shift+Symbol Shift, then ... the flashing K Cursor.
    RND Caps Shift+Symbol Shift, then ...
    Dunny Dunny March 2008 Sinclair Miscellaneous
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... ,v,p:
    LET x=RND*36+10:
    LET x ... /> LET c=FN a(3+PEEK 23673,256):
    CLS :
    Dr BEEP Dr BEEP March 2008 Development
  • BASIC Keyword ReferenceHi. I do most of my ZX work on a grey-case +2 which, as we all know, is devoid of most of the 48k BASIC keywords (it has LOAD and stuff, but not much…

    ...
    PAUSE : K : M
    PEEK : E : O
    PI : E ...
    RETURN : K : Y
    RND : E : T
    RUN : K ...
    icabod icabod March 2008 Sinclair Miscellaneous
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... startfield

    LET x=RND*36+10:
    Calculate CUBE ... /> LET c=FN a(3+PEEK 23673,256):
    Initialize timer ...
    Dr BEEP Dr BEEP March 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... z=68-CODE "d$CE"(RND*3+1):
    LET z ... p=64*INT (RND*12)+2*INT (RND*15)+66:
    POKE ...
    Einar Saukas Einar Saukas April 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... z=68-CODE "d$CE"(RND*3+1):
    LET j ... /> LET p=64*INT (RND*11)+2*INT (RND*15)+66:
    LET t=99-PEEK 23673:
    CLS :
    IF ...
    Einar Saukas Einar Saukas April 2008 Development
  • Announce: BASin r14b availableHere's the fix mentioned earlier for those of you that either are too lazy to update your OS (XP SP2 has been out aaaaages, Arjun!) or even junk that…

    ... 23692,0: LET f=PEEK 23688: LET g=PEEK 23689: FOR a ... : DATA PEEK 23688,PEEK 23689,"","",p-1*(p>1)+RND*3-1 ...
    bigjon bigjon April 2008 Emulators
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... z=68-CODE "d$CE"(RND*3+1):
    LET j ... p=64*INT (RND*11)+2*INT (RND*15)+66:
    POKE ...
    Einar Saukas Einar Saukas April 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... +5,5: LET f=PEEK a: LET g=PEEK (a+1): FOR ... *(s>=p)*(s1)+INT (RND*3)-1*(p>21 ...
    bigjon bigjon April 2008 Development
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    [code]
    1 POKE 23618,1:
    INK RND*6:
    POKE 23620,5-(RND
    Digital Prawn Digital Prawn May 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    [QUOTE=Digital Prawn;440795][code]
    1 POKE 23618,1:
    INK RND*6:
    POKE 23620,5-(RND
    bigjon bigjon May 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    ... x+5,1:
    INK RND*6:
    POKE x+7 ...
    Digital Prawn Digital Prawn May 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    ... x+5,1:
    INK RND*6:
    POKE x+7 ... +RND:
    CLS :
    POKE x,PEEK x-2:
    PLOT 255*RND ... ,176*RND:
    DRAW 99*RND,99*RND,RND ... *3e5:
    POKE x-3,-1:
    POKE x,PEEK ...
    Digital Prawn Digital Prawn May 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    ... /> 5 RANDOMIZE
    10 INK RND*6
    20 IF ...
    Geoff Geoff May 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    ... 6*RND:IF RND < .03 THEN CLS 3 POKE v, PEEK v ... -2: PLOT
    255*RND,175*RND: DRAW 99*RND, 99*RND, v*RND ... :POKE v,PEEK v+2 ...
    Geoff Geoff May 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    ... 6*RND:IF RND < .03 THEN CLS 3 POKE v, PEEK v ... -2: PLOT
    255*RND,175*RND: DRAW 99*RND, 99*RND, v*RND ... :POKE v,PEEK v+2 ...
    Digital Prawn Digital Prawn May 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…

    ... : LET p$(a)=CHR$ (65+RND*25): NEXT a
    140 ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50: LET t2=(65536*PEEK 23674+256*PEEK ... 23673+PEEK ...
    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…

    ... : LET p$(a)=CHR$ (65+RND*25): NEXT a
    140 ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50: LET t2=(65536*PEEK 23674+256*PEEK ... 23673+PEEK ...
    Dr BEEP Dr BEEP 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…

    ... : LET p$(a)=CHR$ (65+RND*25): NEXT a
    140 ...
    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…

    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
<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
rnd 2.9K 4.1K
peek 1.9K 4.4K

Related Threads

  • 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…
  • 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 …
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects?<br /> <br /> As a start, try anything from RANDOMIZE USR 12…
  • Speed of variables vs. POKE/PEEKGreetings,<br /> <br /> I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone a…
  • 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…

Related Searches

  • 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
  • rnd
  • peek
  • peek 1024mak
  • detect 128k peek
  • detect 16k peek
  • z88dk read address peek
  • z88dk read peek
  • z88 peek
  • z88dk peek
  • new rnd
  • rutine rnd
  • address of basic program peek
  • ram test basic poke peek program
  • ram test basic poke peek program data
  • rnd based on peek 23672

Copyright © 2024 World of Spectrum