shithub: pokered

ref: 6f7337bbb1a65e95ad59d3a738c47faf1e96027a
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