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.004s
<1234567…34>
  • problems with rndGot past the whole INKEY$ issue and now am trying to pin down the combat section of the game. got a basic combat routine however, when i try and gen…

    ... see it needs to be rnd*7 for the effect i ... ; MH, they need to be (rnd*7)+1

    Hmmmm ... that's always changing and peek the value then look up ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • 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 …

    ... /> DEF FN t()=INT ((PEEK 23673*256+PEEK 23672)/50)
    30 ...
    Battle Bunny Battle Bunny August 2012 Sinclair Basic
  • 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 …

    ... -a): LET p=2^a+PEEK (USR u$-8):
    FOR ... STEP 0: LET score=INT (RND*100):
    PRINT AT 9 ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • smooth movement in basicWas trying to figure this out myself but i would like to be pointed in right direction now :-). How do I make something move in Basic without gettin…

    ... =blue]
    9030 IF NOT PEEK 23681 THEN POKE 23681,1 ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • Getting PC into HLHello, here's a conundrum for you... Is there a way to obtain the value of the PC register (say into HL) without using absolute addressing such as C…

    ... 21:
    LET w=INT (RND*40500)+25000:
    RESTORE:
    PEEK (w+2)*256,205
    Battle Bunny Battle Bunny February 2013 Sinclair Miscellaneous
  • BIN2BAS (load BASIC text into emulator) utilityI've nearly finished testing this. It allows a BASIC program to be loaded from a text file in any emulator which has a "load binary" option. I was wo…

    ... c: IF NOT a OR PEEK b THEN PRINT c
    RND: LET c$=SCREEN$(7,8 ...
    Battle Bunny Battle Bunny April 2013 Sinclair Basic
  • pathfindingworking on pathfinding in the game. here is Russian description of Lee's algorithm: [url]http://algolist.manual.ru/games/wavealg.php[/url] "if-then"…

    ... =1 TO 704: LET z=RND>.3: PRINT PAPER 2 ...
    Einar Saukas Einar Saukas May 2013 Development
  • pathfindingworking on pathfinding in the game. here is Russian description of Lee's algorithm: [url]http://algolist.manual.ru/games/wavealg.php[/url] "if-then"…

    ... =1 TO 704: LET z=RND>.3: PRINT PAPER 2 ...
    70 LET px=PEEK q1: LET py=PEEK (q1+1): LET ...
    Einar Saukas Einar Saukas May 2013 Development
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1):
    CLEAR ... a+65,14,k0,k0,RND*256,k0,k0,CODE ",":
    REM The RND is for test; normally that ... UDG:
    POKE 23563,PEEK 23670: POKE 23564,PEEK 23671
    [/code ...
    Battle Bunny Battle Bunny August 2013 Sinclair Basic
  • BIFROST* example: "Knights & Demons DX" source codeA package containing the source files of our multicolor game "Knights & Demons DX" is now available for download [URL="http://www.mediafire.com/?hbch…

    ... functions such as [B]PEEK[/B] and [B]RND[/B]), and a ...
    Einar Saukas Einar Saukas August 2013 Development
  • Books that you just can't quit.Much as parts of the presentation,writing style infurates me, there is a book I just keep comming back to again and again. Its like the Yang to the …

    ... 23681,INT (RND*32): PRINT PEEK 23681;: LET total1=total1+PEEK 23681:
    POKE 23681,RND*31: PRINT PEEK 23681;: LET total2=total2 ... +PEEK 23681:
    NEXT a: PRINT ''< ...
    Battle Bunny Battle Bunny August 2013 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, …

    ... : DEF FN p(a)=PEEK a+256*PEEK (a+1)

    =CHR$ 16+CHR$ INT (RND*8)+CHR$ 17+CHR$ INT ... LET ra=INT (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
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... ", "LEN", "LN", "NOT", "OR", "PEEK, PI", "POINT", "RND", "SCREEN$", "SGN", "SIN", "SQR ...
    Kweepa Kweepa January 2014 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... ", "LEN", "LN", "NOT", "OR", "PEEK", "PI", "POINT", "RND", "SCREEN$",
    "SGN", "SIN ...
    Kweepa Kweepa January 2014 Development
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... (RND*3)*256: [b]DEF FN p(a)=PEEK a+256*PEEK (a ... (pv/256): POKE pa,pv-PEEK (pa+1)*256: RETURN[/b ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... (RND*3)*256: [b]DEF FN p(a)=PEEK a+256*PEEK (a ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • Dock's ZX Maze gameI'm hoping to finish a simple maze game in ZX Spectrum BASIC this week, as part of the Ludumdare Retro challenge. I used to dabble in speccy basic on…

    ... :
    LET s=1+INT(RND*j):
    LET i$=p ... /> ......

    301 LET s=RND
    305 IF s="5 ...
    Battle Bunny Battle Bunny June 2014 Sinclair Basic
  • Dock's ZX Maze gameI'm hoping to finish a simple maze game in ZX Spectrum BASIC this week, as part of the Ludumdare Retro challenge. I used to dabble in speccy basic on…

    ... :
    LET s=1+INT(RND*j):
    LET i$=p ... /> ......

    301 LET s=RND
    305 IF s="5 ...
    davepierce07 davepierce07 June 2014 Sinclair Basic
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1): CLEAR ... /> ;equivalent to RANDOMIZE 0 for RND routine below
    InitS: ld ... = 3 / 11
    call RND
    ld bc,17873

    RND7: call RND
    ld a,h
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1): CLEAR 32767 ... +r0*32+c0: LET a=PEEK p: PRINT AT r0,c0 ...
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • RANDOMIZE - still not sure what it does...Whenever I wish a random number I use RND like: 10 LET a=RND*100 20 PRINT a 30 GO TO 0 and "a" will truly be random. But if is do the following: …

    ... FRAMES
    230 LET v=PEEK 23672
    240 REM SEED ...
    280 PAUSE 1+INT (RND*31)
    290 NEXT a ... 250 ED 4B 39 FA rnd ld bc,(seed) ; xz -> ...
    Paddy Coleman Paddy Coleman January 2015 Sinclair Basic
  • The 20th comp.sys.sinclair Crap Games Competition thread!Hi all, [SIZE="7"][B][CENTER]ANNOUNCEMENT![/CENTER][/B][/SIZE] The comp.sys.sinclair Crap Games Competition 2015 is now well and truly OPEN! [url]…

    ... INKEY$ INT LEN LN NOT PEEK PI POINT SCREEN$ SGN SIN ... USR VAL VAL$

    RND has no spaces at all ...
    joefish joefish March 2015 Games
<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