Calling a none __device__ function from kernel problem How to call function a C function to return

Sudo code shown like this,

host __device float function(){

return (float)BRandom(); // got error here, I cannot call BRandom() because, I think, BRandom is a none device function which I cannot call.
}

global void(){

function();

}

The question is how can I get a value from BRandom()

Thank you for considering.