Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

NES random numbers

I need to make some. How?

Comments

  • Haroldo_o_pHaroldo_o_p Member Posts: 79
    : I need to make some. How?
    :

    try something like that (I don't know 6502 assembly, so I'm giving just the formula)

    N := (N xor $AA) + 73;

    It will not be completely random (no random number generator is), neither is the best method (but the other methods involve multiplcation and division), but it should suffice.

  • Chris BrownChris Brown USAMember Posts: 4,496 ✭✭

    _ / http://forcoder.org / free ebooks and video tutorials about // Assembly, Scratch, R, Go, Visual Basic .NET, PL/SQL, Objective-C, Swift, Python, Java, JavaScript, MATLAB, Visual Basic, Ruby, C++, PHP, Perl, C, C#, Delphi Hack, Prolog, SAS, Erlang, ABAP, Ada, F#, Awk, VBScript, LabVIEW, Rust, Crystal, COBOL, Lua, Transact-SQL, Dart, Fortran, ML, Julia, Clojure, Alice, Kotlin, Apex, Scheme, FoxPro, Logo, Scala, Lisp, D, Bash // ______

Sign In or Register to comment.