shithub: pokered

ref: 498da6ab0921a280507b3d96e7faac1b305959bd
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