shithub: pokered

ref: 7e9ccbb5b254f794a79c4d0f9d816b3cbfb81f3f
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