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>
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects? As a start, try anything from RANDOMIZE USR 1216 to RANDOM…

    ... ZX81 POKE (or, more probably, PEEK) once which would display the ...
    The Mighty Dopethrone The Mighty Dopethrone October 2003 Sinclair Miscellaneous
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... /> DEF FN P(a)=PEEK a+256*PEEK (a+1)
    [/code ... /> DEF FN T()=(1 AND PEEK (1+FN P(23639))=34 ... )+(2 AND PEEK (FN P(23639))>13 ... AND PEEK (1+FN P(23639))> ...
    chev chev November 2004 Sinclair Basic
  • ZX-81 Ram Pack problemHi! I know this is a ZX Spectrum forum, but I am hoping someone here might be able to help me out... I have posted this to c.s.s. but noone was able…

    ... (RND*255)
    30 POKE N,A
    40 IF PEEK (N ...
    Tom-Cat Tom-Cat September 2005 Sinclair Miscellaneous
  • Speed of variables vs. POKE/PEEKGreetings, I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone already knew …

    ... 't it be faster to PEEK/POKE values at an absolute ...
    GOC GOC September 2005 Sinclair Basic
  • Happy birthday RNDThink of a number between 0-100 RND, go on, any number. Huppy Burthus-day.

    Think of a number between 0-100 RND, go on, any number.


    Huppy Burthus-day.
    Graz Graz June 2007 Chit chat
  • BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…

    ...
    CLOSE # : E : SYM + 5 PEEK : E : O
    CLS : K ... : Y
    EXP : E : X RND : E : T
    FLASH : E ...
    icabod icabod March 2008 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…

    Following 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.

    [code]
    10 INK RND*6
    20 IF RND
    Geoff Geoff 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 ... : LET p$(a)=CHR$ (65+RND*25): NEXT a
    140 ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • problem with RND (or maybe INT)I'm using this statement: LET m=(INT (RND*sn)+k1)*k2-k1 to give a pointer m to a 2-byte segment of a string l$. Items k1 & k2 are integer constants…

    ... :

    LET m=(INT (RND*sn)+k1)*k2-k1
    RND*sn)+k1)*k2-k1: PRINT ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... seem to recall a RANDOMIZE RND command which I've entered ...
    930 LET k=INT (RND*8)
    940 LET l ... =INT (RND*8)
    950 LET m ... =INT (RND*8)
    960 LET n ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • RND numberHow do I go about selecting from the numbers 4,9,14 and 19? (RND*4)*5-1 ????? :-?

    How do I go about selecting from the numbers 4,9,14 and 19?

    (RND*4)*5-1 ????? :-?
    daveysludge daveysludge March 2012 Sinclair Basic
  • Basic BASIC help needed RNDHi all, I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers. I know little now, an…

    ... />
    Let b= 1+ INT (RND*49): PRINT b

    landorb landorb March 2012 Sinclair Basic
  • Dimming the screen...Hi Folks, I was hoping someone on here could help me with a wee machine code routine. I have written the following example in BASIC: [CODE]100 REM…

    ... : PRINT AT y,x; PAPER RND*7;" ": NEXT x: NEXT y ... 23231: POKE a,PEEK a-(64 AND PEEK a>64): NEXT ...
    Paddy Coleman Paddy Coleman May 2012 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…

    ... flummoxed, mainly due to the RND equation!

    Any ideas ...
    daveysludge daveysludge July 2012 Development
  • 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…

    ... LET PH=INT (RND*6)+(INT (RND*6))+(INT (RND*6)): LET PD ... =INT (RND*6): LET MH=INT (RND ... *18): LET MD=INT (RND*6)
    50 ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…

    ...
    20 LET r=INT (RND*768): LET y=INT (r ... *32+x: LET p=p-(PEEK q0): POKE q,0:
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • RND cyclical behaviourGood evening. I'm playing with RND function to show its cyclical behaviour, i.e. after 65536 calls to it, the next one will return the same value of …

    ... .
    I'm playing with RND function to show its cyclical ...
    15 LET r=INT (RND*n)
    20 LET y ...
    mattsteel mattsteel August 2013 Sinclair Basic
  • GEDit syntax highlighting for Boriel's ZX BasicHi! I just tailored this syntax highlighting code and would like to share with he community. Suggestions are always welcome, though the file works w…

    ...
    paper
    pause
    peek
    plot
    poke
    randomize
    return
    rnd
    save
    sgn
    pkersey pkersey February 2014 Development
  • Where does the the Spectrum store the PLOT position ?So try this and it works just fine. The Spectrum must store the PLOT position somewhere as the line moves along. I'm sure someone knows where this is…

    ... this is? Where do I PEEK?
    5 PAUSE 0: RANDOMIZE ... 0,0
    20 DRAW RND*20,RND*20
    30 GO ...
    ivanb303 ivanb303 December 2016 Sinclair Basic
  • 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…

    ... )" for printing.) The standard Spectrum RND (on the left) gives an ... the test loop processing overhead, RND took 8.82 seconds for ... being "much, much faster" than RND. The '500' timings for the ... number function 3*speed of RND and with almost identical results ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... (i)
    LET r=INT(RND)*255
    LET A(i ...
    NRA NRA November 2018 Sinclair Basic
  • random number generator without using rnd in basicwhat is the simplest way to generate random numbers in basic (0-255), without using the rnd statement? i also want it to always generate the same…

    what is the simplest way to generate random numbers in basic (0-255), without using the rnd statement?

    i also want it to always generate the same numbers over and over again.
    digital digital June 2019 Development
  • Randomised data samplingHere is something that could be written in BASIC, if anyone is interested. Lets say we want to sample a subset of a larger population, we can do t…

    ... /> 20 POKE poptab+n, INT (RND * 4)
    30 NEXT n ... 511
    110 PRINT INK PEEK (poptab+n)+2; "O";
    dmsmith dmsmith April 2020 Sinclair Basic
  • 16k and PEEK 40000 (on a real 16k Spectrum)?Imagine a real 16k Spectrum (without any RAM expansion or circuits fitted). What would I get if I do a PEEK or try to access memory over 32767? Wo…

    ... get if I do a PEEK or try to access memory ...
    Zup Zup June 2020 Hardware
  • More random questionsWay back in the mists of time I remember reading a couple of articles in an ancient copy of Sinclair User, ZX Computing or the like (can't remember w…

    ... :

    POKE (PEEK 23635+256*PEEK 23636) + 1,0
    25 Beep .0010, INT ( RND*50 - ( SGN PI*INT ( ... PI ) - RND*5))
    30 If n= ... 5000: Randomize: Beep .0010, INT ( RND*50 - ( SGN PI*INT ( ... PI ) - RND*15)): If n=10 Or ...
    Amigo Amigo July 2003 Games
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... poke:

    POKE PEEK 23633 + 256 * PEEK 23634, 111

    PEEK 23613 + 255*PEEK 23614
    20 PRINT PEEK A; TAB ... 10; PEEK (A+1 ... ); TAB 20; PEEK (A ...
    na_th_an na_th_an April 2005 Development
  • Ways to use double buffering in basicI was meddling with woody's print stream code where you can print characters at any pixel location on screen. I was playing with 12 sprites, very ann…

    ... $
    1300 let i=int(rnd*maxi)
    1310 let inci ...
    NotFound NotFound November 2006 Sinclair Basic
  • I got it bad!Just noticed the speccy Loading sounds on one of the menu selections on the Mutant X DVD. I got excited and played it a few times. Oh dear!

    ... on PEEK 89345968745whateveritwas was identified as having the filename "STARSTRIKE RND" (or ... something like that - STARSTRIKE RND is too long ...
    gasman gasman December 2006 Sinclair Miscellaneous
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    ... =RND*255
    20 LET Y=RND*175
    30 DRAW X-PEEK ... 23677, Y-PEEK 23678 ...
    alchresearch alchresearch June 2007 Sinclair Basic
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    ... FN r(RND*255,255,PEEK 23672),FN r(RND*175,175,PEEK 23672 ...
    Dunny Dunny June 2007 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