2 commands in script wont work together

For some reason when I run these separately they work but when they are in a script file the second wont:

printf "%s\n" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" | tee $HOME/bpl/random

RANDOM1=$( <$HOME/bpl/random ) 

Anyone know why?

wasn't it answered here?

no it wasnt

interesting.... I thought it had been.
and you decided to create a new thread instead of following on in the old thread??

well i changed the script a bit, sorry i guess i should have reposted the new one on there.

Works fine for me under Ubuntu/bash. Can you provide a bit more information about the shell and O/S version you're using so we can offer a bit more help?

Cheers,
Keith

for some reason the $RANDOM1 variable wont show any data

'$RANDOM1' has a 'life-span' of pk2-2 script.
try:

$ . pk2-2
$ echo ${RANDOM1}

ok cool thanks!