shithub: pokered

ref: 1dcaede8b5e41dbec9bf3f2b18c77d1b7d2de708
dir: /home/random.asm/

View raw version
Random::
; Return a random number in a.
; For battles, use BattleRandom.
	push hl
	push de
	push bc
	farcall Random_
	ldh a, [hRandomAdd]
	pop bc
	pop de
	pop hl
	ret