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.007s
<1234567…34>
  • 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 Folks,

    Well it works a treat. Here is the program I created and tested in BASin:

    [CODE]100 REM
    110 REM Create MCODE
    120 REM
    130 CLEAR 60000
    140 LET a=60000: RESTORE 280
    150 READ v: IF v
    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…

    ... in BASin the first two random values returned are always zero ... to be non zero and random. This only happens when 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…

    ... REM Display Counter, Random No(0-255), Random No(1-42)
    420 REM Error is Random No 42
    430 REM ... to run correctly and generates random number between 1 and 42 ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Alkatraz protection systemI recently became interested in the Alkatraz protection system, a very widely used tape protection (a infoseek search returns more than one hundred r…

    ... usr peek etc stuff too ? :-o or just any other random things ...
    spider spider December 2011 MIA/STP/SDP
  • Amazonia (BUGFIX)This is a bugfix for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0027280"]Amazonia[/URL], please add the following "known errors" des…

    ... =48304 TO 48443: POKE f,PEEK (f+9): NEXT f: POKE ... 49359 STEP -1: POKE f,PEEK (f-2): NEXT f: POKE ... (143):=40 ; move 'COBRA' to random location
    e317: 0b 8f ... (143):=40 ; move 'COBRA' to random location
    e317: 0b 8f ...
    Einar Saukas Einar Saukas January 2012 Infoseek database
  • WANTED: Britain Invaded! instructions[deleted]

    ... /> I've had a quick peek at the listing and played ... appears to have a pseudo-random element. As can be seen ... "dice" is rolled. Although the random seed is apparently set to ...
    Digital Prawn Digital Prawn February 2012 Wanted
  • 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…

    ... i want to do a random roll i just pick some ... 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 …

    ... could check this with a peek somewhere? just check it once ... wrong. I was applying the random movement to the whole array ...
    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 …

    ... wraparound and calculates a possible random vertical shift for the target ... /> DEF FN t()=INT ((PEEK 23673*256+PEEK 23672)/50)
    30 ...
    Battle Bunny Battle Bunny August 2012 Sinclair Basic
  • [MOD] R-Type IIII suppose it makes sense now to register [URL="http://www.worldofspectrum.org/forums/showpost.php?p=401659&postcount=15"]R-Type III[/URL] back in the…

    ... is no map, just endless random alien ships. It looks for ... /> Someone other than me must peek the code and confirm mheide ...
    LCD LCD September 2012 Infoseek database
  • Diagnosing a strange software fault in a 48kHi, A friend gave me a 48k, which I am very keen to restore. The spectrum 48k was my first computer over 20 years ago and I owe my ability to code t…

    ... /> POKE 50000,85
    PRINT PEEK 50000
    POKE 50000,170 ...
    PRINT PEEK 50000

    You should ... address range and writes a random values, reads it back and ...
    vext01 vext01 October 2012 Hardware
  • Spectrum 16K Issue 3Hi! I just received a Spectrum 16K, which turns out to be an Issue 3. Is it really that rare? If not, I?d like to upgrade it to 48K. There are 12 em…

    ... a random value in the upper 32K (say 60000) and PEEK it ...
    Spirantho Spirantho November 2012 Hardware
  • Spectrum 16K Issue 3Hi! I just received a Spectrum 16K, which turns out to be an Issue 3. Is it really that rare? If not, I?d like to upgrade it to 48K. There are 12 em…

    ... a random value in the upper 32K (say 60000) and PEEK it ...
    schombi schombi November 2012 Hardware
  • 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"…

    Although pathfinding is a very interesting theme, I'm afraid this discussion is getting boring. I suggest we shift the focus of this thread in a more productive direction...

    Therefore I have implemented the "simplified Dijkstra" algorithm from ...
    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"…

    ...
    70 LET px=PEEK q1: LET py=PEEK (q1+1): LET ...
    Einar Saukas Einar Saukas May 2013 Development
  • Corrupt paper on zx spectrum 48kHi. When I power up my spectrum (issue 3) I get the light grey border, but the paper is black and it switches between thin red vertical lines and thi…

    ... RAM chip without using the peek/poke routines? (with a multimeter ... , the Z80 may be processing random instructions or it may have ...
    1024MAK 1024MAK August 2013 Hardware
  • 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…

    ... /> [*]Lines 25 & 26 select random segments in high memory and ... ]DEF FN p(a)=PEEK a+256*PEEK (a+1)[/b]
    PEEK (pa+1)*256: RETURN[/b ...
    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…

    [QUOTE=Dock;774114]Experimenting more has lead me to realise the limitations in my own code, so I'm going to try to keep it as simple as possible. Next step is to get the game responding to certain tiles as collectables or switches.[/QUOTE]

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

    [QUOTE=Battle Bunny;774142]Here's some extracts from a program which I've been working on recently, which illustrate some methods to consider. An exhaustive commentary follows ...

    [code]
    35 LET j1= 0: LET j2=-1: LET s=1: RETURN
    ...
    davepierce07 davepierce07 June 2014 Sinclair Basic
  • Detecting flash mode inversionsIs is possible to detect with certainty when flashing characters change from normal to inverted and vice-versa?

    ... comes back on? Is it random or is it where it ... =32: LET f=INT ((z+PEEK 23672)/16):
    PRINT AT ...
    Battle Bunny Battle Bunny November 2014 Development
  • 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: …

    ... ...

    [B][COLOR="DeepSkyBlue"]Random Number Generator Routine[/COLOR][/B ... FRAMES
    230 LET v=PEEK 23672
    240 REM SEED ... ]

    To generate a random number between 1 and N ...
    Paddy Coleman Paddy Coleman January 2015 Sinclair Basic
  • IN and OUT in hardware terms... what are 'ports'?Hi all, I understand PEEK and POKE, but have never managed to get my head around IN and OUT. The books all go on about how they read from and wri…

    ... [/i], though.

    The PEEK and POKE BASIC statements manipulate ... ] to hardware.

    A PEEK will result in something that ... won’t exactly be [i]random[/i], but they will then ...
    zub zub September 2015 Hardware
  • So where is the random number in the Speccy ?So I am messing around with ZX Spectrum Assembler and I want a random number. I looked up previous posts and one of the links said that random number…

    ... br /> 49 if you PRINT PEEK 14000[/quote]
    No, ... /> Most people write their own random number generator rather than relying ... Obviously this isn't especially random, since it reads values from ... runs, the results will be random enough for most purposes. ...
    GReW GReW November 2016 Assembler
  • ZX Spectrum+ showing 16K of RAMHello again, as the title says my ZX Spectrum+ is showing only 16K of RAM instead of 48K when running a memory check. [url="http://www.1000bit.it/su…

    ... few tests poking random numbers above ... /> POKE 85 01010101
    PEEK 213 11010101

    POKE 1 00000001
    PEEK 129 10000001

    POKE 255 11111111
    PEEK 255 11111111

    vale vale July 2017 Hardware
  • Getting an even random numberWhat would be the best, simplest way to do this ? I was thinking of say: A = RND*100 Then a conditional along the lines of: IF A / 2 <> I…

    I use PEEK 23672 as a random number between 0 and 255 ... , it can work as a random number when it is included ... you´ll obtain an even random number between 0 and 510 ...
    IvanBasic IvanBasic November 2018 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…

    Surely just generating the seed from [PEEK] (frames) after an input or any wait for user input (EG select joystick or even "press a key to continue") would generate a number random enough for the majority of cases?
    SKR SKR January 2019 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…

    ... just generating the seed from [PEEK] (frames) after an input or ... continue") would generate a number random enough for the majority of ... cases?[/quote]
    For “normal” random numbers, yes.
    But not ...
    1024MAK 1024MAK January 2019 Sinclair Basic
  • Brain 8I am glad to present my new "experiment" in Sinclair Spectrum 48K BASIC. https://drive.google.com/file/d/17_wCFWaAl5diIVt3rPLTbKhxDmPmYmOs/view?us…

    Congratulations on the release IvanBasic. I had wondered what your ... .
    . Are you using POKE/PEEK for variables for improved speed ...
    patters patters April 2019 Brand new software
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 5:39PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Luny on 5:14PM
  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

HitBox

Word Docs Hits
peek 1.9K 4.4K
random 6.6K 8.2K
ivanbasic 138 147

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. …
  • 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…
  • 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 …
  • 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…
  • You live you learn - random ramblingsWell I've been around for some time now and I continue to be amazed at the new things I find on WoS.<br /> <br /> For example, today I came across Ma…
  • 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…
  • Random Pick.I finished the game 'Simpsons Hit &amp; Run' on the weekend and I am about to choose another game to start playing in a few days time. I was thinkin…
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23.<br /> <br /> Any ideas on …

Related Searches

  • random
  • 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
  • random assembly
  • random number code
  • peek
  • peek 1024mak
  • detect 128k peek
  • detect 16k peek
  • z88dk read address peek
  • z88dk read peek
  • z88 peek
  • z88dk peek
  • rutine random
  • ivanbasic peek
  • random ivanbasic
  • peek 23672 random numbers

Copyright © 2024 World of Spectrum