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.011s
<1234567…34>
  • 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…

    ... 60
    70 POKE 23671, PEEK 23672
    100 REM Remaining program ... RNDs helps choosing the "pseudo" random sequence randomly.
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • 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
  • 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…

    ... />
    [CODE] ld a,r ;random number
    and 31 ;make ... not tested!

    Your 'random' number is only as good ... ld a,(23672) amongst others. For EFMB I generated random numbers in various ...
    R-Tape R-Tape July 2012 Development
  • 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 FOR ... ,1,142
    50 POKE 23672,0: POKE 23673,0
    Battle Bunny Battle Bunny August 2012 Sinclair Basic
  • display file addressing; screen slicingWhile working on this Compendium I'm updating or rewriting a lot of stuff. One thing I eventually came to appreciate was the simple & clever way in w…

    ... reversed the sequence of the numbers in array b() as the ... +x+c*8: LET w=PEEK hl:
    IF NOT (INT ...
    Battle Bunny Battle Bunny October 2013 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 0 ...
    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 values ... ]

    To generate a random number between 1 and N ...
    Paddy Coleman Paddy Coleman January 2015 Sinclair Basic
  • 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, it ... of the links said that random numbers are in the ROM at ... /> Most people write their own random number generator rather than relying ... /> Obviously this isn't especially random, since it reads values from ...
    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…

    ... run a few tests poking random numbers above memory allocation 32768. Here ... />
    POKE 85 01010101
    PEEK 213 11010101

    POKE ... />
    POKE 255 11111111
    PEEK 255 11111111

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

    ... just generating the seed from [PEEK] (frames) after an input or ... cases?[/quote]
    For “normal” random numbers, yes.
    But not if ...
    1024MAK 1024MAK January 2019 Sinclair Basic
  • Horizons and Thro' The Wall- the greatest game of all time.I just got that Horizons tape in a charity shop, I'd never seen it before, and loaded the programs up. What a barrel of laughs that must have been on…

    ... dozen programs on probability and random numbers, and Thro' The Wall, possibly ...
    Spector Spector August 2002 Games
  • How to program Machine Code on a PC, and then run it on a speccy?Well, I've been looking into MC a bit more deeply recently - I reckon I could get my head round MC now. Back when I was a teenager, I couldn't see th…

    ... trees - MC just seemed like random numbers on the screen! Now I ...
    jonrach73 jonrach73 March 2004 Development
  • Help needed - UK lottery number generator in c++I'm trying to write a c++ program to generate 9 lines of 6 numbers for the uk national lottery. Anybody got any idea where I'm going wrong? I'm com…

    ... generate 9 lines of 6 numbers for the uk national lottery ... and print out the bloody numbers.

    Any help would ... of number_bag
    // to contain numbers 1-49 in positions 1 ...
    BigBadMick BigBadMick April 2007 Chit chat
  • 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 …

    ... factor of how BASIC generates random numbers?

    :smile:

    Hehe bet modern random number generators are just as ...
    DonkeyPong DonkeyPong June 2007 Sinclair Basic
  • to the phorensic people out thereA question about undeleting files. They say that even if you delete a file, you can sometimes get it back again by scanning the drives for the file b…

    ... , could you fill it with random numbers a few times and make ... :

    dd if=/dev/random of=/dev/hdb1
    dd ... /hdb1
    dd if=/dev/random of=/dev/hdb1
    dd ...
    wilsonsamm wilsonsamm March 2008 Chit chat
  • BASIC: Fast way of filling a string?Recently I decided to use string slicing to extract random numbers from a sequence in the one-liner Lottery picker: [quote] 20 RANDOMIZE : LET a$=""…

    ... use string slicing to extract random numbers from a sequence in the ...
    Dunny Dunny November 2008 Development
  • Writing internet servers in ZX BASICNew Spectranet news! I have just finished adding the code to allow listening sockets to be used from BASIC. A simple example: [code] 10 %listen #4,…

    ... /> to see a list of random numbers appear on the screen.
    Winston Winston August 2009 Hardware
  • 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 ... *PEEK 23674+256*PEEK 23673+PEEK 23672)/50: LET t2=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672 ...
    Paddy Coleman Paddy Coleman September 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
  • 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…

    ... try and generate 3 separate random numbers it does not seem to ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • RANDOMIZE USRI always thought that this particular basic command was not intuitive! If I understand correctly is means run the code from the memory address, is t…

    ... randomize implies the RAND function (random numbers), what should have it been ...
    Van_Dammesque Van_Dammesque February 2013 Sinclair Basic
  • Math problemI'm trying to solve/model a science problem, and I thought a simple BASIC program might help me, but I struggle to write it. Goal: Given a length of…

    ... upon cutting it in a random position 1, 2, 3, 4 ... once each in a completely random position, I think the resulting ... requires to first reorder the random numbers first.

    Is there ...
    48K 48K August 2013 Sinclair Basic
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... /> printf("\nFilling the array with random numbers.\n\n");

    ... i)
    {
    numbers[i] = rand(); // random
    // numbers[i] = i; // ... /> The results for sorting 5000 random numbers:

    quicksort ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
  • Issue 6 repair with a twist...(Starting with a slight grump - the forum ate my first attempt at this so this'll probably end up being a bit terse :)) I got a Issue 6 48K machine …

    ... was written, resulting in random blank pixels and white paper ... of RAM being tested with 'random' numbers. The seed is then ... same, the sequence of random numbers generated always ended up masking ... resides has two stamped serial numbers:
    [IMG]https://farm4 ...
    balford balford September 2014 Hardware
  • Can you think of a game with unusual behaviour... As an example, I always loved the way you got a whole group of bikers collating on the screen. It was almost as if a gang had passed by and I was n…

    ... or just the way the random numbers fell.

    [img]http ...
    Luny Luny August 2015 Games
  • Help please!I've nearly finished my attempted port of Donkey Kong using AGD 4.0 but have run into some snags, I'm just not great at putting elements of code into…

    ... /> when I experimented with including random numbers they just froze

    random check when above a ladder ...
    jesus 666 jesus 666 March 2017 Development
<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