shithub: pokered

ref: 5c9c7bf3625cfa4a4bf68ef27b5671cba5fc5d1d
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