shithub: pokered

ref: 2c4f35848b786864822a3f211df91de30a2857c9
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